Declaring constant references in struct members

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Feb 15 16:49:45 PST 2017


On Thursday, 16 February 2017 at 00:43:30 UTC, David  Zhang wrote:
> struct S {
>     O object;
> }

import std.typecons;

Rebindable!O object;

http://dpldocs.info/experimental-docs/std.typecons.Rebindable.html



More information about the Digitalmars-d-learn mailing list