C++11 how to proxy class function having only its name and parent class?
问题 I wonder if it is possible using boost::mpl/preprocessor or some noce C++11 features to create function proxy from class type and function name. Say we had: inline void set_email(const ::std::string& value); inline void set_email(const char* value); inside class Email. We know there is set_email function n it, we want to create a prox class with API like PROXY(Email, set_email, MyEmail) Email * email = new Email(); MyEmail * myEmail = new MyEmail(email); and have abilety to call any of set