How to return a const handle (view) to a mutable member of an agregate

ParticlePeter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Mar 13 12:37:42 PDT 2016


I have a struct that privately warps an std.container.array. I 
would like to return a read-only reference of this array, it 
should not be duplicated. How can I do this?

Cheers, ParticlePeter


More information about the Digitalmars-d-learn mailing list