Boost logo

Boost Users :

From: Rainer Thaden (RThaden_at_[hidden])
Date: 2008-04-28 13:35:40


Hi Peter,

> this works, thanks a lot.

Thanks to Fernando!

> However, as I could see by single stepping with the debugger, this seems to
> do much more than what I want, so I suspect it has efficiency issues. I will
> be doing this for pixels of images, so it better be as fast as possible.
>
> It seems to do overflow checking, which I don't need (I know it won't
> overflow). How can I disable this? I tried silent_overflow_handler, but this
> seems still to do the checking.
>
> Also I'm not sure if the rounding couldn't be more efficient (I only need to
> add 0.5, no need to be more elaborate). Is there a way to plug in my own
> rounding?

I experienced quite the same and solved it ... by adding 0,5 ;-)
You may get some other problems with that but as a first step it works.

Regards,

Rainer


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