Boost logo

Boost Users :

Subject: Re: [Boost-users] ASIO: custom service which works with spawn/yield
From: Vinnie Falco (vinnie.falco_at_[hidden])
Date: 2018-07-25 15:13:43

On Wed, Jul 25, 2018 at 7:25 AM, Cristian Morales Vega via Boost-users
<boost-users_at_[hidden]> wrote:
> boost::system::error_code ec = boost::asio::error::already_started;
> boost::asio::post(
> boost::beast::bind_handler(std::move(init.completion_handler),
> std::move(ec)));

Two things you can try:

1. Don't use move on ec:

    boost::system::error_code ec = boost::asio::error::already_started;
        std::move(init.completion_handler), ec);

2. Try the tip of the Beast master branch (or the 1.68 beta). In
particular, this change:



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at