3 ms·
Beyond stylistic discussions that siblings have pointed out, there are cases where explicitly using a type instead of auto would be preferable given the semanti
by fluoridation 3y ago
Beyond stylistic discussions that siblings have pointed out, there are cases where explicitly using a type instead of auto would be preferable given the semantics at that location. For example, you might want to force a type conversion where auto would otherwise give you a different or even unknown type (because the source type is templated).