2 ms·
You shouldn't use auto for float and int not just because they're simple, but because they get happily coerced in ways that might break things. I've not writte
by dllthomas 12y ago
You shouldn't use auto for float and int not just because they're simple, but because they get happily coerced in ways that might break things. I've not written much C++11, but my intuition would suggest limiting auto to places where, upon a change, either 1) everything in the dependency chain will change and work correctly, or 2) anything that can't change correctly will loudly break at compile time.