Is it possible to create an operator member_function_pointer_type() without using typedefs (i.e. specifying the type of the built-in pointer of a member function)?
For example, when implementing Idoom Safe Bool:
class Foo { typedef void (Foo::*bool_type)() const; public: operator bool_type() const; };
Is it possible to write the bool_type type directly when declaring a statement? If so, how?
c ++ syntax operator-overloading typedef member-function-pointers
Mehrdad
source share