Can I break a valid C++03 program by replacing std::vector::push_back with emplace_back and compiling it with C++ 11 compiler? From reading e
std::vector::push_back
emplace_back
e
int main() { std::vector().push_back(0); std::vector().emplace_back(0); }
Give struct constructor in emplace_back i.e The above code will be like this
int main() { std::vector().push_back(0); std::vector().emplace_back(S(0)); }