|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2003-01-06 18:50:00
Howard Hinnant <hinnant_at_[hidden]> writes:
> I would be careful that your target audience doesn't look at the
> "helloworld" and say, gee, why don't I just use existing language
> features:
>
> template <class T>
> struct my_container
> {
> // impl2 ...
> };
>
> template <class T>
> struct my_container<T*>
> {
> // impl1 ...
> };
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
{
...
};
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk