2014-03-10 1:37 GMT+01:00 Brian Ravnsgaard Riis <brian@ravnsgaard.net>:
[&](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()'