For example, I use macro to write a constructor method
#define DEFAULT_CONSTRUCTOR T() { ...; }
class A
{
DEFAULT_CONSTRUCTOR;
};
However, I don't know the concrete type T. I try decltype(*this). It cannot be used in constructor. Any way to do it? Please don't use macro arguments.