Boost logo

Boost :

Subject: Re: [boost] [gil] Pixel Hasher
From: Harg Tholan (hargtholan_at_[hidden])
Date: 2013-03-26 09:51:23


Do you mean that unordered_map can automatically instantiate a hashing
function for any type of pixel? I have tried this:

boost::hash<pixel_rgb8_t>()

And VC11 will spit:

error C2664: 'boost::hash_value' : cannot convert parameter 1 from 'const
boost::gil::rgb8_pixel_t' to 'std::type_index'

Thanks.

2013/3/26 Christian Henning <chhenning_at_[hidden]>

> >
> > I've been looking for a hashing function for PixelBased types... with no
> > succes, so I created one. Does this have any value for users?
>
> How about the one supplied by unordered_map?
>
> Christian
>
> _______________________________________________
> Unsubscribe & other changes:
> http://lists.boost.org/mailman/listinfo.cgi/boost
>


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