In this code:
I get the error (pointing at the return-part in Create()):Code:class C
{
public:
explicit C() {};
explicit C(const C& c) {};
~C() {};
};
C Create()
{
return C();
}
What am I missing? Shouldn't the copy constructor be enough?Quote:
error C2520: 'C::C' : no non-explicit constructor available for implicit conversion