Quantcast
Channel: Use of 'auto func(int)' before deduction of 'auto' in C++14 - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Bartek Banachewicz for Use of 'auto func(int)' before deduction of 'auto' in C++14

$
0
0

Clang has a much better error message for that one:

main.cpp:8:16: error: function 'func' with deduced return type cannot be used before it is defined    auto ret = func(5);               ^

I guess that's self-explanatory.


Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>