From: Richard Hodges (hodges.r_at_[hidden])
Date: 2020-01-24 21:10:51
On Fri, 24 Jan 2020 at 22:06, Peter via Boost <boost_at_[hidden]> wrote:
> i did explicitely define it (and i tried both with clang and gcc with
> c++2a enabled) but i think the problem is the line
> #include <experimental/coroutine>
> in boost/asio/awaitable.hpp
> which fails, because it seems that the experimental directory has been
As of today, you'll need to use a recent clang with an up-to-date libc++
You will also need to specify -fcoroutines on the command line (
CXXFLAGS=-fcoroutines or similar)
I'm not sure what the equivalent is on msvc.
gcc has just this week gained coroutines support. I'd be surprised if the
version you are using supports it.
I'd recommend installing (or building from scratch if you're using an old
linux distro) latest clang and libc++
> > Am 24.01.2020 um 20:31 schrieb Richard Hodges via Boost <
> > On Fri, 24 Jan 2020 at 16:25, Paps Olo via Boost <boost_at_[hidden]>
> > wrote:
> >> Hi,
> >> i've been trying to get the coroutine chat example to work, but it
> >> seems that in 1.72 and 1.71 boost/asio/awaitable.hpp does not compile
> >> when BOOST_ASIO_HAS_CO_AWAIT has been defined.
> > Did you define it yourself or did boost discover it?
> > You will need a compiler with coroutines enabled.
> > Can you confirm toolset and cxxflags?
> Unsubscribe & other changes:
-- Richard Hodges hodges.r_at_[hidden] office: +442032898513 home: +376841522 mobile: +376380212
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk