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


_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost

Reply via email to