template <char const* name>
class MyClass {
…
};
So, apparently you cannot use literals with templates. The reason given is:
One of the problems with string literals is that two identical literals can be stored at two distinct addresses.
But what could happen in a worse case scenario? If it was allowed, then, could it happen that 2 exact same instances of a template would be created(because a new template instance is created for every combination of template parameters used in code), so, would that somehow pose a problem?