"David Abrahams" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Howard Hinnant <[EMAIL PROTECTED]> writes: > > 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 > { > ... > };
I think if you provided a copy c'tor that called memcpy() for impl1, or some other POD optimization, that would motivate the example for people who might be a little slow on the uptake (like I am sometimes!). Otherwise, it seems like a decent introduction. You might even be a little suggestive and call it my_vector, to imply that you are creating a POD-optimized vector (which people should be able to relate to easily enough). Dave _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost