Boost logo

Boost Users :

From: Aleksey Gurtovoy (agurtovoy_at_[hidden])
Date: 2005-02-02 06:49:03


suresh.t_at_[hidden] writes:
>
> I was trying to use mpl::contains with list_c and it always seems to
> return mpl::false_.
>
> For example
> typedef mpl::list_c< int ,16,8 > mylist;
> typedef mpl::contains<mylist, mpl::int_<16> >::type tt;
>
> "tt::value" is zero though i thought 16 being in the mylist it would be 1.
>
> Can someone please let me know whether the usage is improper and if so
> what should be used to find elements in list_c?

Please see http://article.gmane.org/gmane.comp.lib.boost.user/9255.

-- 
Aleksey Gurtovoy
MetaCommunications Engineering

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