auto ref is on the docket
kink via Digitalmars-d
digitalmars-d at puremagic.com
Tue Jun 23 02:50:46 PDT 2015
On Monday, 22 June 2015 at 23:43:07 UTC, Timon Gehr wrote:
> The problems with transitive const to be encountered in
> day-to-day C++ work are few.
Trolling as always. You know what I meant. Haven't had to resort
to mutable fields and/or const_casts in a long time. Mostly a
matter of good design imho.
As different behavior for templated `auto ref` and non-template
`auto ref` seems to be an issue for more people here, why don't
just rename the non-templated one `scope ref`, so that it's
usable for templates too and also enables the `in ref` shortcut
for const? I find `const auto ref` extremely clumsy.
More information about the Digitalmars-d
mailing list