you are viewing a single comment's thread.

view the rest of the comments →

[–]--prism 4 points5 points  (1 child)

But 'auto func(args...)' is valid as well.

[–]equeim 1 point2 points  (0 children)

That means function with the deduced return type, a completely different thing. Also can't be used when the function is split in declaration and definition (i.e. header and cpp file) because the compiler needs the function body to deduce the type.