4 ms·
Its more than that. You can't put move-only types into std:: containers if the target doesn't have a C++11 support. There are many other pitfalls like this that
by gtremper 12y ago
Its more than that. You can't put move-only types into std:: containers if the target doesn't have a C++11 support. There are many other pitfalls like this that are hard to notice until you try it on a pre-C++11 target.
- reubenmorais 12y agoSupport for move semantics in library containers is a better reason for disallowing it, I'm just pointing out that std::move (and std::forward) is the simplest part of the puzzle.
- gtremper 12y agoWell, if the simplest part of the puzzle isn't implemented, then I doubt the rest of it is.