Re:The C++14 Standard: What You Need to Know
by dkhenry on Wednesday September 17, 2014 @10:58AM
(#8330299)
So now I need an emacs package that can parse my c++ and can replace all instances of the auto keyword with their actual types. That way I can develop quickly using auto but I can keep the code maintainable by having full type signatures.
[ Parent
| on HN ]
Re:The C++14 Standard: What You Need to Know
by cheepin on Wednesday September 17, 2014 @12:25PM
(#8330777)
As mentioned in another comment, the use of 'auto' isn't just to shorten an unwieldy type name.
> The primary use-case of auto returns is for templated functions where the return type depends on the thing passed in.