Click here to Skip to main content
15,890,438 members
Articles / Programming Languages / C++

Passing a const character * as a template argument

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
30 Jun 2011CPOL 26.8K   1  
Consider a class template of the form (the method cout is just explanatory):template struct A { static void cout() { std::cout << str << std::endl; };};How can this template be instantiated?From the C++ standard can be understood that the address...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions