12 May
                
                    2005
                
            
            
                12 May
                
                '05
                
            
            
            
        
    
                12:45 a.m.
            
        Thorsten Ottosen wrote:
I don't know why you insists that we need two overloads.
Given
template< class T > MyType { Iter Begin(); ConstIter Begin() const; ... };
surely
template< class T > auto begin( MyType<T>&& r ) -> decltype( r.Begin() ) { return r.Begin(); }
can handle both const and non-const arguments.
No, it can't.