Honestly, I've not understood the rationale or the covered use case in letting the copy ctor mutate the ref source parameters...Sincerely, without polemical intent. - P
For the same reason C++'s std::shared_pointer uses a non-const copy constructor.
Olivier FAURE via Digitalmars-d-announce Mon, 25 Feb 2019 14:50:43 -0800
Honestly, I've not understood the rationale or the covered use case in letting the copy ctor mutate the ref source parameters...Sincerely, without polemical intent. - P
For the same reason C++'s std::shared_pointer uses a non-const copy constructor.