At 05:09 PM 1/6/2003, David B. Held wrote: >"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).
I like this suggestion a lot. A simple, useful example that can't easily be done without something like MPL. _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost