lpcware

std::thread not available but dialect set to C++11

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by davidviranyi on Mon Jan 25 04:52:51 MST 2016
I am try to use std::thread in a project. I have set the dialect to c++11 and also tried c++1y. I get an error message that thread is not a member of std.

When I look at the thread header file I see it tests the value of __cplusplus which is 199711L and so excludes the declaration of thread.

Surely this value should be set to 201103L if the dialect is set to c++11 ?

Outcomes