In C++11 given
— Shafik Yaghmour (@shafikyaghmour) June 19, 2018
struct A {
A(int a);
A(A&&)=delete;
};
The following
std::vector<A> v;
v.emplace_back(1);
A. Well-formed
B. Requires diagnostic
C. Invokes undefined behavior
Answer first, read answer below.#Cplusplus #Programming #CppPolls