Boost logo

Boost Users :

Subject: Re: [Boost-users] [enable_if] Compile Time Member Overloading
From: Christian Henning (chhenning_at_[hidden])
Date: 2012-11-19 09:23:33


Hi Steve,

On Sun, Nov 18, 2012 at 7:27 PM, Steve Lorimer <steve.lorimer_at_[hidden]> wrote:
> What happens if you drop the ::type from is_same?
>
> void read_data_24( typename enable_if< mpl::and_< mpl::true_,
> mpl::bool_< is_same< T1, T2 >::value > > >::type* /* ptr */ = 0)
>
> (I don't have VS compiler so can't test - but dropping ::type from is_same
> still compiles fine on gcc 4.7.0 for me)

Yes that worked for me. Thanks a lot!

One more thing do I actually need to build a mpl::bool_ out of the
is_same function?

Christian


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