|
Boost Users : |
Subject: Re: [Boost-users] [GIL] About `packed_channel_value` (possible improvement)
From: TONGARI (tongari95_at_[hidden])
Date: 2013-02-14 13:47:34
2013/2/15 TONGARI <tongari95_at_[hidden]>
> Hi Christian,
>
> 2013/2/15 TONGARI <tongari95_at_[hidden]>
>
>> 2013/2/15 Christian Henning <chhenning_at_[hidden]>
>>
>>> On Wed, Feb 13, 2013 at 6:13 PM, Christian Henning <chhenning_at_[hidden]>
>>> wrote:
>>> > 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 have uploaded the revised packed_channel_value class. Please have a
>>> look when you get a chance.
>>>
>>
>> Ah, too bad, I just edited the file to get it work w/o that overload...
>> Ok, I'll check it now.
>>
>
> Seems you haven't made any change to `channel.hpp`.
> Here's my patch for some possible improvement with care of not breaking
> the current API., I only tested the testcase `channel.cpp`.
>
>
> If you find any flaw or improper, please let me know.
>
Sorry, there's a fatal bug, please ignore the previous, here's the fixed
one.
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