“auto to stick” and Changing Your Style
While performing a code review on a refactoring project, I stumbled upon a change that took a line of code from this state: Widget myWidget{42}; to that: auto myWidget = Widget{42}; Well, in the actual case the type wasn’t called Widget and the initialization value wasn’t exactly 42. But that’s the gist of it. What’s […]