
4 Jul
2008
4 Jul
'08
12:26 a.m.
AMDG Jeremy Pack wrote:
Yep! Good idea. I'll take care of it.
For example, right now I have to do this:
factory_map fm; std::map<int, factory<word> > & factory_list = fm.get<word, int>();
It would be ideal to do this instead:
factory_map fm; factory_map::type& factory_list = fm.get<word, int>();
Is it really that easy? Doesn't the result of get depend on the particular template arguments? I don't quite see how you can get away with a single typedef. In Christ, Steven Watanabe