lundi 27 novembre 2017

sstream issue, CLION Mac

I am using CLION in Mac OSX High Sierra, and when I compile, I have an error.

 cadena=static_cast<ostringstream*>(&(ostringstream()<<vidas))->str();

and the error is:

/Users/macbookpro-jonathanprieto/CLionProjects/xonixpacman/main.cpp:113:40: error: cannot take the address of an rvalue of type 'std::__1::basic_ostringstream, std::__1::allocator >' cadena=static_cast(&(ostringstream()<str();

Aucun commentaire:

Enregistrer un commentaire