Boost logo

Boost :

Subject: Re: [boost] [gil] Pixel Hasher
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-03-26 10:31:03


On Tue, Mar 26, 2013 at 10:25 AM, Harg Tholan <hargtholan_at_[hidden]> wrote:
> Ok, I guess you solution is better for it uses "static_for_each" which
> would turn into statically generated code.
> But we may skip pushing stuff into a vector by doing
>
> std::size_t hash = 0;
> static_for_each( p, [&] ( const channel_t& c )
> {
> boost::hash_combine(hash, c);
> });
>
> return hash;
>
> Do we agree with this?

Looks good to me.

Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk