fork download
  1. template <typename A, typename B>
  2. class foo { };
  3.  
  4. template <typename T>
  5. struct feature_type {};
  6.  
  7. template <typename A, typename B>
  8. struct feature_type<foo<A,B>> {
  9. typedef A type1;
  10. typedef A type2;
  11. };
  12.  
  13. int main(int argc, const char* argv[])
  14. {
  15. typename feature_type<foo<int,char>>::type1 x;
  16. typename feature_type<foo<int,char>>::type2 y;
  17. return 0;
  18. }
Success #stdin #stdout 0s 2892KB
stdin
Standard input is empty
stdout
Standard output is empty