Quote:Original post by Zahlman
You know, I'm starting to think that the language doesn't really need move
constructors as much as it needs better support for *swapping*. :)
Isn't that what overloading std::swap is for?
Quote:Original post by Zahlman
You know, I'm starting to think that the language doesn't really need move
constructors as much as it needs better support for *swapping*. :)
Quote:Original post by KylotanAh yes, but the syntax to call that isn't nearly as nice asQuote:Original post by Zahlman
You know, I'm starting to think that the language doesn't really need move
constructors as much as it needs better support for *swapping*. :)
Isn't that what overloading std::swap is for?
a = b;
Quote:Original post by iMalcQuote:Original post by KylotanAh yes, but the syntax to call that isn't nearly as nice asQuote:Original post by Zahlman
You know, I'm starting to think that the language doesn't really need move
constructors as much as it needs better support for *swapping*. :)
Isn't that what overloading std::swap is for?a = b;
If there was a swap operator, then things would be a whole lot different.