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
- Re: [boost] Re: Hello MPL world! Joel de Guzman
- [boost] Re: Re: Hello MPL world! David B. Held
- Re: [boost] Re: Re: Hello MPL world! Rob Stewart
- Re: [boost] Re: Hello MPL world! Howard Hinnant
- [boost] Re: Re: Hello MPL world! David B. Held
- Re: [boost] Re: Hello MPL world! David Abrahams
- [boost] Re: Hello MPL world! David B. Held
- Re: [boost] Re: Hello MPL world! Greg Colvin
- Re: [boost] Re: Hello MPL world! Howard Hinnant
- Re: [boost] Re: Hello MPL world! David Abrahams
- Re: [boost] Re: Hello MPL world! Beman Dawes
- Re: [boost] Re: Hello MPL world! Howard Hinnant
- Re: [boost] Re: Hello MPL world! David Abrahams
- Re: [boost] Hello MPL world! Terje Slettebų