|
Boost : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-04-26 02:23:25
Daniel Wallin wrote:
> David Abrahams wrote:
>> I brought up this issue a few weeks ago. I was thinking we should be
>> able to write
>>
>> rvalue(_1)
>>
>> or maybe
>>
>> cref(_1)
>>
>> to pass rvalues.
>
> The problem is that the BPL operator() looks like this:
>
> template<class A0>
> R operator()(A0& a0)
>
> AFAIK there's no way to insert a const there, other than providing the
> full 2^N overload set.
True. Any attempt to insert some metafunction in argument type, e.g:
R operator()(const_if_requested<A0>::type a0)
will break template argument deduction.
- Volodya
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk