
Thanks Dave,
I also came to this conclusion and intorduced a metafunction
make_item_visitor. But I really must say, that MPL is great! The only
problem is that it is somehow hard to convince people to use it or to
believe in metaprogramming. This is pitty.
Many thanks again. Great lib and great book (C++ Metaprogramming)!
Ovanes.
-----Original Message-----
From: David Abrahams [mailto:dave@boost-consulting.com]
Sent: Tuesday, January 02, 2007 6:54 PM
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] mpl::inherit_linearly question
"Ovanes Markarian"
In such a case I have to introduce a second parameter to the item_visitor template:
template
struct item_visitor { ... };
I see that you've answered your own question, but... I suggest not using template template parameters. class templates that use template template parameters are not compatible with MPL lambdas. It's usually better to accept a unary MPL lambda expression. -- Dave Abrahams Boost Consulting www.boost-consulting.com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users