From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-05-11 15:08:57


Thorsten Ottosen wrote:
> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> news:011e01c5565c$b9f22000$6401a8c0_at_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?