Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] About `packed_channel_value` (possible improvement)
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-02-13 18:13:10


Hi,

>> // I have no idea why this exists, seems OK to remove it
>> template <typename Scalar> packed_channel_value(Scalar v) { _value =
>> static_cast< integer_t >( v ) % num_values; }
>
> I always thought we need that but some testing shows it's not needed.
> I'll remove it.
>

Turns out this function is needed. For instance in
channel_algorithm.hpp[449]. I'll leave it in for now.

Christian


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