#include <iostream> template <class T> struct A { typedef typename T::C TC; A(){ TC::out(); } }; struct B: A<B> { struct C { void out(){ std::cout<<"C";} }; }; int main() { B b; return 0; }
С
C
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment