boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
201 stars 161 forks source link

Conditionally set C++11 requirements #396

Open Flamefire opened 1 year ago

Flamefire commented 1 year ago

Reduced variant of #395 where the requirements are only set when lexical_cast is directly used, i.e. in the pthread case.

However this fails/failed on Appveyor due to date_time using lexical_cast and also src/win32/thread_primitives.cpp including atomic which uses static_assert

So to me #395 looks more correct but I wanted to provide both solutions for you to choose.