 
            
            
            
            
                26 Apr
                
                    2004
                
            
            
                26 Apr
                
                '04
                
            
            
            
        
    
                9:23 a.m.
            
        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