
4 Jul
2008
4 Jul
'08
12:58 a.m.
AMDG Robert Dailey wrote:
Why not turn factory_map::get() into a template utility class of some sort instead of a function? That would give you the ability to typedef the std::map. Perhaps another option is to do the following:
<snip>
All I know for sure is that exposing std::map seems like an implementation detail, and specifying the same template parameters more than once also bothers me slightly.
I kind of like the idea of allowing type_factory_map<word, int> factory_list(fm); In Christ, Steven Watanabe