|
Boost Users : |
From: Stjepan Rajko (stipe_at_[hidden])
Date: 2007-11-19 18:12:17
On Nov 19, 2007 2:38 PM, Robert Dailey <rcdailey_at_[hidden]> wrote:
>
> 1) If t_number is equal to 1, enable_if will allow the first overload for
> the array operator.
> 2) If t_number is greater than 1, enable_if will allow the second overload
> for the array operator.
>
> Is there some sort of is_less_than or is_equal objects in boost I can use
> with enable_if for my operator overloads? Thanks.
>
http://www.boost.org/libs/mpl/doc/refmanual/comparisons.html
e.g.,
equal_to< int_<t_number>, int_<1> >
HTH,
Stjepan
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