vendredi 27 mars 2015

Initializing const char** with C++11 initilizer list

I get an error while compiling the following code using visual C++ in VS2013:



int main(){
const char **constchar = { {} };
return 0;
}


The error is as follows:



Error 1 error C2440: 'initializing' : cannot convert from 'initializer-list' to 'const char **'

Aucun commentaire:

Enregistrer un commentaire