
11 May
2005
11 May
'05
8:08 p.m.
Thorsten Ottosen wrote:
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:011e01c5565c$b9f22000$6401a8c0@pdimov2...
template< class T > auto begin( MyType<T>&& r ) -> decltype( r.Begin() ) { return r.Begin(); }
And
no.
template< class T > auto begin( MyType<T> const && r ) -> decltype( r.Begin() ) { return r.Begin(); }
No, meaning that you want to disallow iteration on const MyType<T>? Have you actually _tried_ any of this? Have you tried your own example before putting it into the paper?