2 Feb
2010
2 Feb
'10
9:09 p.m.
2010/2/2 Peter Goetz
Hi Robert,
some time ago I was faced with the same problem and modified gil/extension/io/jpeg_io_private.hpp to throw an exception in that case.
Thank you for the attached header file. I very much appreciate that I've got a working solution now, although I'd wish that it was already implemented in boost like this.
I am not sure, but maybe it is worth trying to get this into boost?
That's true. I wonder who's responsible for the GIL I/O extension stuff. Would that be Christian Henning or rather Lubomir Bourdev?
Cheers, Peter
Robert, 2 minor details: 1. Is there a reason you used io_error_if(true...) instead of io_error(...)? 2. I think the return is not necessary since we throw anyway. Cheers, Peter