Boost logo

Boost Users :

Subject: Re: [Boost-users] request: plz add operator() to mpl::true_ and mpl::false_
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-08-12 18:14:57


AMDG

On 08/12/2012 11:15 AM, Niitsuma Hirotaka wrote:
> <snip>
>
> In this case, we need to define same thing two times.
> However if mpl::true_ have operator() as like
>
> mpl::true_
> {
> template<typename T>
> bool operator()(const T & dummy){return true;}
> };
>
> We can remove one line using:
>
> template<typename T> bool is_foo(const T& dummy){return
> is_foo_traits<T>::value;}
>

???

I don't see how you're using operator()
and I really don't think it's a good
idea to add such an arbitrary function,
anyway.

In Christ,
Steven Watanabe


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