I have CLion 1.2 on Mint Maya with gcc5 installed. The default value of gcc is 4.6. (/ usr / bin / gcc β gcc-4.6) The compiler is installed via CMakeLists and settings[toolchain settings] https://www.dropbox.com/s/se5nxfdki7zdkhm/screen_settings_toolchain.png [sample] https://www.dropbox.com/s/ss7r6kss64k00ez/screen.png
The editor will say: parameter type mismatch: expression should be rvalue on std :: thread t1 (f1), but I can create and run this sample
What's wrong?
Example:
void f1(){ cout<<"hi"<<endl; } int main() { cout << "Hello, World!" << endl; std::thread t1(f1);//Parameter type mismatch: Expression must be rvalue t1.join(); return 0; }
I believe this is a Klion error parser
Affected Versions: CLion 1.2Fix Version: CLion 2016.1
Affected Versions: CLion 1.2
Fix Version: CLion 2016.1
Source: https://habr.com/ru/post/1243459/More articles:ref reaction with focus () does not work without setTimeout (my example) - reactjsDeploying OWIN using existing database name validation? - c #MVC 5 IdentityDbContext and DbContext operations - c #You must double-click the "Back" button to switch from activity - androidAzure BreakLease returns 409 Conflict error - azureAndroid - How do I change the color of an EditText line using animations like Google Forms? - androidTypeScript Angular 2 Subscription Responses - javascriptValidation W3C HTML5 img noscript facebook.com - javascriptScale different parts of an SVG file differently - vector-graphicsKotlin data class: how to read the value of a property if I don't know its name at compile time? - kotlinAll Articles