title: std::thread Parameter type mismatch: Expression must be rvalue
body: <p>I have  CLion 1.2  on Mint Maya with installed gcc5. Default gcc is 4.6. (/usr/bin/gcc -> gcc-4.6)
  Compiler set through CMakeLists and Settings<br>
  [toolchain settings] <a href="https://www.dropbox.com/s/se5nxfdki7zdkhm/screen_settings_toolchain.png" rel="noreferrer">https://www.dropbox.com/s/se5nxfdki7zdkhm/screen_settings_toolchain.png</a>
  [sample] <a href="https://www.dropbox.com/s/ss7r6kss64k00ez/screen.png" rel="noreferrer">https://www.dropbox.com/s/ss7r6kss64k00ez/screen.png</a></p>
  
  <p>Editor say:  Parameter type mismatch: Expression must be rvalue on  std::thread t1(f1) but I can build and run this sample</p>
  
  <p>What is wrong?</p>
  
  <p>Sample:</p>
  
  <pre><code>void f1(){
  cout&lt;&lt;"hi"&lt;&lt;endl;
  }
  int main() {
  cout &lt;&lt; "Hello, World!" &lt;&lt; endl;
  std::thread t1(f1);//Parameter type mismatch: Expression must be rvalue
  t1.join();
  return 0;
  }
  </code></pre>