fork(2) download
  1. #include <iostream>
  2. #include <type_traits>
  3.  
  4. struct Test1 {};
  5.  
  6. namespace MyNS {
  7. template <typename > class Test;
  8.  
  9. template <> class Test<Test1> {
  10. public:
  11. constexpr static char const *description[] = { "X1", "Y1"};
  12. };
  13. }
  14.  
  15. int main()
  16. {
  17. std::cout << MyNS::Test<Test1>::description[0] << std::endl;
  18. }
  19.  
Success #stdin #stdout 0s 3456KB
stdin
Standard input is empty
stdout
X1