On 5/07/2016 00:38, Daniel Hofmann wrote:
On 07/04/2016 12:42 AM, Gavin Lambert wrote:
Although on that note:
http://www.boost.org/doc/libs/1_61_0/ states that Coroutine2 is a C++14 library.
http://www.boost.org/doc/libs/1_61_0/libs/coroutine2/doc/html/coroutine2/ove... states that Coroutine2 is a C++11 library.
Which of these is true?
Both.
Reading the Boost 1.61 changelog:
http://www.boost.org/users/history/version_1_61_0.html
Context: - execution_context: relaxed to C++11 Coroutine2: - relaxed to C++11
It looks like Boost >=1.59, <1.61 has to be build with CXXFLAGS="-std=c++14", which is probably not the default. Failing to do so results in linker issues when using Boost.Coroutine2.
Boost >=1.61 relaxes Boost.Coroutine2 to C++11.
Ok, but that's not "both", it means the first is wrong and should be corrected.