Re:Why I don't spend time with Modern C++ anymore
by jesperhh on Wednesday May 18, 2016 @07:37AM
(#11721176)
Visual Studio shows the type of auto on hover.
Re:Why I don't spend time with Modern C++ anymore
by fish2000 on Wednesday May 18, 2016 @12:23PM
(#11723059)
… also one of the forthcoming Clang projects is a static-analysis tool (á la `clang-format`) for replacing any `auto` decls with the actual typename, so you can write lazy code without appearing unscrupulous at code reviews
let x = someFunction()
Alt-click on x and it shows the type.
Otherwise, as you say, the code becomes very confusing and I abstain from auto except in cases where the type is clearly obvious.