10.8 — Type deduction for objects using the auto keyword
There’s a subtle redundancy lurking in this simple variable definition: double d{ 5.0 }; In C++, we are required to provide an explicit type for all objects. Thus, we’ve specified that variable d is of type double. However, the literal value 5.0 used to initialize d also has type double …