
5 May
2006
5 May
'06
5:30 p.m.
David Abrahams wrote:
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
Ah, ok. I'll let Dan reply then. He wrote that part of the docs. Cheers, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net