Boost logo

Boost :

From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2006-07-06 21:44:29


Oleg Abrosimov wrote:

> It can be rewritten as follows:
>
> if( count!=fread(buffer,size,count,stream.get()) ||
> ferror(stream.get()) ) boost::throw_<fread_error>() <<
> boost::wrap_string<tag_function>("fread") <<
> boost::wrap_errno() <<
> boost::weak_ptr<FILE>(stream);
> }

Yes, but what happens if boost::wrap_string throws?

I know you can work your way around this issue but it's going to be really
hacky.

--Emil


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk