Boost logo

Boost :

From: Howard Hinnant (hinnant_at_[hidden])
Date: 2003-01-06 22:17:28


On Monday, January 6, 2003, at 06:50 PM, David Abrahams wrote:

> OK, I see your point. How about:
>
> template <class T>
> struct my_container
> : if_<
> and_<
> is_pointer<T>
> , is_POD<remove_pointer<T> >
>>
> , impl1
> , impl2
>> ::type
> {
> ...
> };

Or maybe even just:

   template <class T>
   struct my_container
      : if_<is_POD<T>::value, impl1, impl2>::type
   {
      ...
   };

-Howard


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