To whom it may concern
 
Why we can’t use <const char*> in this context?
 
#include < iostream >  
template < auto N >
void f () {
    std::cout  << N  << std::endl ;
}  
int main () {
    f < 1 >();
    f < '!' >();
    f < "!!" >(); // error  
     return 0 ;
}
 

Alexander and his classmates
  • templates саша савельев

Reply via email to