|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2006-05-05 09:49:20
Joel de Guzman <joel_at_[hidden]> 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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk