
25 Aug
2004
25 Aug
'04
7:12 p.m.
"Jody Hagins" <jody-boost-011304@atdesk.com> wrote
and in the ctor, I want to call the do_something template method for each type, so that it expands to something like...
Bar() { foo.template do_something<Type1>(); foo.template do_something<Type2>(); foo.template do_something<Type3>(); ... foo.template do_something<TypeN>(); }
Use mpl::for_each<vector>(functor), where vector is any MPL sequence, and functor has a templated function call operator. Regards, Arkadiy