Boost logo

Boost Users :

Subject: Re: [Boost-users] Standard error handler in gil jpeg_io extension calls exit()
From: Peter Goetz (peter.gtz_at_[hidden])
Date: 2010-02-02 16:09:18


2010/2/2 Peter Goetz <peter.gtz_at_[hidden]>:
> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net