Re:How well do you know C++ auto type deduction?
by binary132 on Monday December 15, 2025 @09:51AM
(#46275252)
It’s extremely convenient for certain things. For example, let’s say I’m referring to an enum constant field of a deeply-nested type. This can easily be expressed as “auto k = a.b.c.d.kind” instead of “Alpha::Bet::Charlie::Delta::Kinds k = a.b.c.d.kind”. It should be used sparingly in local contexts where the meaning cannot be confusing.
[ Parent
| on HN ]
There are no comments on this comment yet.