It is possible to check for a user defined constructor?
For example I have the following code
class A {};
class B {
public:
B(){/* do stuff */}
};
And I want to be able to do something like this:
printf("%d", check_for_user_default_constructor<B>::value);
printf("%d", check_for_user_default_constructor<A>::value);
and to have a true
value only for class B.