mirror of https://github.com/fwbuilder/fwbuilder
Revert "refactor: Use C++17 standard"
Delay usage of C++17 to after 6.0,
as there's no current usage, but staying
on C++11 will support Ubuntu 16.04 LTS.
This reverts commit 3359246b9a
.
This commit is contained in:
parent
ad53357d83
commit
33fc3aa5c1
|
@ -42,7 +42,7 @@ endif()
|
|||
|
||||
### Compiler options
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
set(CXX_DEFAULT_FLAGS # clang/GCC warnings
|
||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:GNU>>:-Wall;-Wextra;-Werror;-Wno-overloaded-virtual>
|
||||
|
|
|
@ -299,11 +299,7 @@ protected:
|
|||
{
|
||||
#ifdef ANTLR_CXX_SUPPORTS_UNCAUGHT_EXCEPTION
|
||||
// Only give trace if there's no uncaught exception..
|
||||
# if __cplusplus >= 201703
|
||||
if(ANTLR_USE_NAMESPACE(std)uncaught_exceptions() == 0)
|
||||
# else
|
||||
if(!ANTLR_USE_NAMESPACE(std)uncaught_exception())
|
||||
# endif
|
||||
#endif
|
||||
parser->traceOut(text);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue