Boost logo

Boost Users :

Subject: Re: [Boost-users] State of context and coroutine
From: Daniel Hofmann (daniel_at_[hidden])
Date: 2016-07-04 08:38:21


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/overview.html
> 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_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net