vendredi 12 août 2016

constexpr literal initialization with a constexpr

simple example here:

 static constexpr const char literal1[] = "abcde"; 
 static constexpr const char literal2[] = literal1;

compilation error. How to make it work and why it doesn't?

Aucun commentaire:

Enregistrer un commentaire