
Steven, Yeah, it isn't quite that simple. I read the original post too quickly and thought he was referring to a different function. I originally had a type for that std::map<int, factory<word> >, so it would be something like type_factory_map<int, word>, which isn't much terser. (thus, I removed it) I think the best solution here is to make your own typedefs for your specific case. There are a couple of other places in the library though where I intend to add the type of typedefs suggested. Jeremy On Thu, Jul 3, 2008 at 5:26 PM, Steven Watanabe <watanabesj@gmail.com> wrote:
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
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost