
5 May
2006
5 May
'06
1:49 p.m.
Joel de Guzman <joel@boost-consulting.com> writes:
In the extension example, I see repeatedly the same patter transferring the cv-ref qualification from one type to another. Can't that be made simpler for extenders?
typedef typename mpl::if_< is_const<Sequence>, std::string const&, std::string&>::type type;
Can you point me to an example in the library, please?
This isn't from the library code. I copied it directly from the docs at libs/fusion/doc/html/fusion/extension.html -- Dave Abrahams Boost Consulting www.boost-consulting.com