10 Mar
2014
10 Mar
'14
7:26 a.m.
2014-03-10 1:37 GMT+01:00 Brian Ravnsgaard Riis
[&](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()'