Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2003-02-15 13:01:08


Daniel Frey wrote:
> typedef test::remove_pointer< int A::* >::type t1;
> typedef test::remove_pointer< int A::* const >::type t2;
> typedef test::remove_pointer< int A::* volatile >::type t3;
> typedef test::remove_pointer< int A::* const volatile >::type t4;
>
> typedef test::add_const< int( int ) >::type t5;
> typedef test::add_volatile< int( int ) >::type t6;
> typedef test::add_cv< int( int ) >::type t7;

Why do you expect these to work?

> typedef char t8[ test::is_convertible< double, int >::value ];
> typedef char t9[ !test::is_class< int( int ) >::value ];
> typedef char t10[ !test::is_enum< int( int ) >::value ];

These should work. If they don't, the implementation is broken. :-)


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk