Howard Hinnant <[EMAIL PROTECTED]> 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 [EMAIL PROTECTED] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost