
4 Jul
2008
4 Jul
'08
9:30 p.m.
I'm not picking on vicente; this is a reminder to everyone: on Fri Jul 04 2008, "vicente.botet" <vicente.botet-AT-wanadoo.fr> wrote: <snip entire foregoing thread> Please see http://www.boost.org/community/policy.html#effective and limit the amount of quoted text if possible. Thanks!
Hello,
Maybe you are thinking on something like:
struct factory_map { template <typename A, typename B> struct getter { typedef std::map<A, factory<B> > type; static type& apply(factory_map&fm){return fm.get<A,B>();} }; }; factory_map fm; typedef factory_map::getter<word, int> factory_map_getter; factory_map_getter::type& factory_list = factory_map_getter::apply(fm);
Vicente
-- Dave Abrahams BoostPro Computing http://www.boostpro.com