AFAIK, binding a temporary to a const reference is perfectly legal in C++, I am doing that all the time...
I strongly suggest you stop doing that, assign a temporary value to a reference is a source of bugs (somewhat simmilar with using pointers after the delete call)
Bookmarks