src/core/utils/log.cpp
int DefaultLogger::get_uncaught_exceptions(bool cons = false) {
#if __cplusplus > 201402L
    // we can only do this fully correctly in C++17
    (void)cons;
    return std::uncaught_exceptions();
#else
    if(cons) {
        return 0;
    }
    return static_cast<int>(std::uncaught_exception());
#endif
}
/**
 * The number of uncaught exceptions can only be properly determined in C++17. In earlier versions it is only possible to
 * check if there is at least a single exception thrown and that function is used instead. This means a return value of zero
 * corresponds to no exception and one to at least one exception.
 */
The number of uncaught exceptions can only be properly determined in C++17. In earlier versions it is only possible to
check if there is at least a single exception thrown and that function is used instead. This means a return value of zero
corresponds to no exception and one to at least one exception.
The number of uncaught exceptions can only be properly determined in C ++ 17 . In earlier versions it is only possible to check if there is at least a single exception thrown and that function is used instead . This means a return value of zero corresponds to no exception and one to at least one exception .
int DefaultLogger::get_uncaught_exceptions(bool cons = false) {
#if __cplusplus > 201402L
    (void)cons;
    return std::uncaught_exceptions();
#else
    if(cons) {
        return 0;
    }
    return static_cast<int>(std::uncaught_exception());
#endif
}
int DefaultLogger :: get_uncaught_exceptions ( bool cons = false ) { #if __cplusplus > 201402L ( void ) cons ; return std :: uncaught_exceptions ( ) ; #else if ( cons ) { return 0 ; } return static_cast < int > ( std :: uncaught_exception ( ) ) ; #endif }
The number of uncaught exceptions can only be properly determined in C++17.
The number of uncaught exceptions can only be properly determined in C ++ 17 .
// we can only do this fully correctly in C++17