On 07/04/2016 12:42 AM, Gavin Lambert wrote:
On 1/07/2016 01:09, Oliver Kowalke wrote:
yes, it's stable - but coroutine is deprecated in favour of coroutine2
Unless you don't have access to a C++14 compiler :P
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.
It also might be nice if the Overview (or other similar location) in Coroutine2 talks about the deprecation and/or what's different between the two libraries.
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users