You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
246 B
12 lines
246 B
4 years ago
|
// https://en.cppreference.com/w/cpp/feature_test
|
||
|
#include <exception>
|
||
|
int main(int argc, char* argv[])
|
||
|
{
|
||
|
#if __cpp_lib_uncaught_exceptions >= 201411L
|
||
|
int x = std::uncaught_exceptions();
|
||
|
#else
|
||
|
int x[-1];
|
||
|
#endif
|
||
|
return 0;
|
||
|
}
|