fork download
  1. #include <string>
  2.  
  3. template<typename T>
  4. void test(const T & x);
  5.  
  6. template<>
  7. void test<std::string>(const std::string & test)
  8. {
  9. }
  10.  
  11. template<size_t N>
  12. void test(const char (&test)[N])
  13. {
  14. }
  15.  
  16. int main()
  17. {
  18. test("test");
  19. }
Success #stdin #stdout 0s 15240KB
stdin
Standard input is empty
stdout
Standard output is empty