Boost logo

Boost Users :

Subject: Re: [Boost-users] [Coroutine] Assertion when coroutine is not run
From: Oliver Kowalke (oliver.kowalke_at_[hidden])
Date: 2014-03-10 03:26:50


2014-03-10 1:37 GMT+01:00 Brian Ravnsgaard Riis <brian_at_[hidden]>:

> [&](coroutine<char>::pull_type& c)
> {
> content.push_back(c.get());
> while(content.size() != contentLength)
> {
> c();
> content.push_back(c.get());
> }
> validResult = true;
> }
>

before calling c.get() you should test if a value is available from
pull_type, e.g. 'if(c) x=c.get()'



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