I want to: 1. Take a constant reference of the object, not copy them 2. The object itself may be const or non const.
Taking a constant reference to a constant/non const object
helxi via Digitalmars-d-learn Wed, 15 Nov 2017 01:06:13 -0800
Hi. What function signature should I use for receiving a constant
reference of an r/l value object? Is it auto fn(inout ref const
myClass obj)?
- Taking a constant reference t... helxi via Digitalmars-d-learn
- Re: Taking a constant re... Jonathan M Davis via Digitalmars-d-learn
- Re: Taking a constant re... helxi via Digitalmars-d-learn
- Re: Taking a constan... helxi via Digitalmars-d-learn
- Re: Taking a con... Jonathan M Davis via Digitalmars-d-learn
- Re: Taking a con... Steven Schveighoffer via Digitalmars-d-learn