12 Sep
2013
12 Sep
'13
3:54 p.m.
two solutions void f( coro_t::caller_type & ca)
{
std::string str( ca.get() ); // asserts here!
ca(7); }
int main(int argc, char* argv[]) { std::string str("abc");
coro_t c(f);
c(str); // pass argument
int res = c.get(); // returned value
return 0; }
Asserts in coroutine_get.hpp line 43:
BOOST_ASSERT( static_cast< D const* >( this)->impl_->result_);
Is the snippet from the doc incorrect or am I doing something else wrong.
Thanks, Jeff
______________________________**_________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/**mailman/listinfo.cgi/boost-**usershttp://lists.boost.org/mailman/listinfo.cgi/boost-users