A String Literal Cannot be Used as a Template Argument

A template can take as an argument the address of an object with external linkage. A string literal cannot be used as a template argument since it has internal linkage. For example:

 template  class A{/*

Share the Post:
Share on facebook
Share on twitter
Share on linkedin


Recent Articles: