Sunday, 29 September 2013

Whats the point of a move-constructor taking a constans rvalue?

Whats the point of a move-constructor taking a constans rvalue?

According to http://en.cppreference.com/w/cpp/language/move_constructor;
"A class can have multiple move constructors, e.g. both T::T(const T&&)
and T::T(T&&)"
When would one want to pass a constant rvalue to the move-constructor?

No comments:

Post a Comment