dimanche 4 décembre 2016

c++ ubuntu eclipse 'Function 'ref' could not be resolved'

I have well written code (from mate using Visual studio), so I think that is problem with eclipse

I have __GXX_EXPERIMENTAL_CXX0X__ and -std=c++14

but in console i saw

g++ -std=c++0x -D__GXX_EXPERIMENTAL_CXX0X__ -O0 -g3 -Wall -c -fmessage-length=0 -std=c++14 -MMD -MP -MF

I cannot find option to change this first "std"...

My code with 'error'

watki.create_thread(std::ref(*(mnozyciele[i])));

Aucun commentaire:

Enregistrer un commentaire