Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2003-01-11 09:42:17


At 10:17 PM 1/6/2003, Howard Hinnant wrote:

>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
> {
> ...
> };

These are the examples that resonate with me, particularly Howard's
version. It looks so easy, and has obvious practical uses. It would
motivate me.

But it needs to be a complete, compilable, runable, program so I can try
it, modify it, etc.

--Beman


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