https://stackoverflow.com/questions/47606667/how-to-get-typename-defined-in-derived-from-base-class
I will share it with you as I thought it would be nice to refer to the link above.
I would appreciate it if you could tell me what's going on.
template<class T>
structure traps;
template<class Derived>
US>structure Base {
typeef typename traps <Derived >::TT;
};
template<typename T_>
structureImpl:public Base<Impl<T_>>{
typeef T_T;
};
template<typename T_>
structure traps<Impl<T_>>{
typeef T_T;
};
usingSpecialImpl=Impl<int>
int main() {
SpecialImplsi;
}
© 2025 OneMinuteCode. All rights reserved.