0
I know the only way to pass a string literal as template argument is to declare it before: file a.h #ifndef A_H #define A_H #include <string> char EL[] = "el"; template<char* name> struct myclass { std::string get_name() { return name; } }; typedef myclass<EL> myclass_e...