|
|
|
|
|
by xKingfisher
1936 days ago
|
|
The article did touch on a possible reason for the misunderstanding. If you already know from previous versions that push_back makes a copy and that C++11 added move semantics and emplace_back, it's not a huge leap to connect the two. Especially if you don't notice push_back's rvalue overload (or understand rvalues). And if you're new to C++ and are having all of this thrown at you at once it'd definitely be easy to get some crossed wires. |
|