Getting a range over a const Container

Ellery Newcomer ellery-newcomer at utulsa.edu
Fri Jul 20 17:15:53 PDT 2012


On 07/19/2012 06:09 PM, Ellery Newcomer wrote:
> On 07/19/2012 02:51 AM, Artur Skawina wrote:
>>         Range!Node opSlice() { return Range!Node(first); }
>>         Range!(const Node) opSlice() const { return Range!(const
>> Node)(first); }


it looks like you could almost merge these two into one using inout, but 
I'm not sure what you do about selecting the return type.


More information about the Digitalmars-d-learn mailing list