2 ms·
Sure. struct A { A (A const&); // copy constructor; A (A&&); // move constructor template <typename T> A (T&&); // template constru
by nly 12y ago
Sure.
struct A {
A (A const&); // copy constructor;
A (A&&); // move constructor
template <typename T> A (T&&); // template constructor
};
int main() {
A a1;
A a2(a1); // calls the template constructor because a1 is an lvalue
}