Boost logo

Boost Users :

From: Filip Konvička (filip.konvicka_at_[hidden])
Date: 2007-06-27 17:56:05


> If you're using Boost 1.34, then you can simply use
>
> hashed_unique<
> tag<userid>,
> member<Peer,std::string,&Peer::userid> >
>
Hi,

I'm just curious - is there a reason why "member" takes 3 template
parameters, and not just one, like in

      member<&Peer::userid>

? The first two types can be extracted from the member pointer, so I
find this a bit redundant...

Thanks,
Filip


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