fork download
  1. template<typename T> struct aaa
  2. {
  3. template<typename U> void test() {}
  4. template<typename U> void moge() { this->test<U>(); }
  5. };
  6.  
  7. int main()
  8. {
  9. aaa<int> a;
  10. a.test<double>();
  11. a.moge<char *>();
  12. }
  13.  
Success #stdin #stdout 0s 2724KB
stdin
Standard input is empty
stdout
Standard output is empty