Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2008-07-04 17:30:21


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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk