fork download
  1. #include <iostream>
  2. #include <typeinfo>
  3.  
  4. template <class T, class U> struct bar {};
  5.  
  6. int main(int argc, char* argv[])
  7. {
  8. using namespace std;
  9.  
  10. bar<int, const float*> test;
  11. cout << typeid(test).name() << endl;
  12. // struct bar<int,float const *>
  13. // -- msvc9 std::type_info::name() returns demangled names
  14. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty