On Friday, 5 June 2015 at 18:35:51 UTC, Marc Schütz wrote:
On Friday, 5 June 2015 at 17:50:55 UTC, ketmar wrote:`const int` works, so i can't see why `auto auto` is failing.Wrong analogy. Try `const const`, and it will fail with the same error as `auto auto`: "redundant attribute".
const auto ans = 42; compiles fine for me, so auto clearly can be used as a type.
