This is my class
class A {
public:
A(int);
A(A const&) = delete;
A& operator=(const A& a) = delete;
// etc.
};
In another file I can call the constructor like this:
auto foo = A(123);
That resolves to the copy constructor and not the one I expect, why?
error C2280: 'mynamspace::A::A(const mynamespace::A &)': attempting to reference a deleted function