Skip to content

Commit 63e6f1b

Browse files
committed
c++20
1 parent 4284ccb commit 63e6f1b

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

cmake/clang-tools.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if(CLANG_TIDY)
2929
clang-tidy
3030
COMMAND
3131
sh -c
32-
"${CLANG_TIDY} ${ALL_CXX_SOURCE_FILES} -- -std=c++17 -I${CMAKE_SOURCE_DIR}"
32+
"${CLANG_TIDY} ${ALL_CXX_SOURCE_FILES} -- -std=c++20 -I${CMAKE_SOURCE_DIR}"
3333
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
3434
else()
3535
message(STATUS "clang-tidy was not found")

matlab/@amimodel/compileAndLinkModel.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ function compileAndLinkModel(modelname, modelSourceFolder, coptim, debug, funs,
3434
end
3535

3636
% compile flags
37-
COPT = ['COPTIMFLAGS=''' coptim ' -DNDEBUG'' CXXFLAGS=''$CXXFLAGS -std=c++17'''];
37+
COPT = ['COPTIMFLAGS=''' coptim ' -DNDEBUG'' CXXFLAGS=''$CXXFLAGS -std=c++20'''];
3838
if(debug)
39-
DEBUG = ' -g CXXFLAGS=''$CXXFLAGS -Wall -std=c++17 -Wno-unused-function -Wno-unused-variable'' ';
39+
DEBUG = ' -g CXXFLAGS=''$CXXFLAGS -Wall -std=c++20 -Wno-unused-function -Wno-unused-variable'' ';
4040
COPT = ''; % no optimization with debug flags!
4141
else
4242
DEBUG = '';

0 commit comments

Comments
 (0)