18 Jun
2013
18 Jun
'13
9:03 a.m.
On 06/18/2013 12:03 AM, Niall Douglas wrote:
I don't understand how that makes std::vector<> or any other STL container suddenly magically start not copy constructing its contents on C++03 compilers.
Other than trying to fall back to const references, there is no magic there. But it does enable you to use rvalue references on C++11 compliant compilers, and revert to other mechanisms (e.g. const references or copying) for older compilers.