Quote Originally Posted by wysota
Are you sure this is correct? You hold a reference to a temporary object here.
The secret lies in the "const" keyword.