c++ macro to import all names of base template class [duplicate]
问题 This question already has answers here : Is it possible to iterate over arguments in variadic macros? (9 answers) Closed 7 months ago . When deriving a class from a template base class, one is forced to use the syntax this->member , or using Base::member to get access to a member of the base class. The same would happen if the base class is a generic template parameter and one is sure that some members exists. Would it be possible to write a macro that "import" all members of the base class