Talk:cpp/language/function-try-block
From cppreference.com
[edit] C++ standard?
Is this for C++98, C++03, C++11, or C++14? LB(T|C) 19:46, 27 March 2014 (PDT)
- C++98 mostly (except for small C++11 things like the mention of thread-local objects) -- now marked as such. --Cubbi (talk) 20:48, 27 March 2014 (PDT)
The article says "For all other functions, reaching the end of a catch clause is equivalent to return; if the function's return type is (possibly cv-qualified) void, otherwise the behavior is undefined." I believe the standard says that reaching the end of a catch clause is equivalent to flowing off the end of the function. There's a difference when it comes to int main(). 80.150.243.190 23:32, 11 December 2019 (PST)