Skip to content

Commit

Permalink
Update to cpp23 standard (#204)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Leweke <[email protected]>
  • Loading branch information
jbreue16 and sleweke-bayer authored Jul 10, 2024
1 parent 183d9a2 commit e4c3373
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ endif()
# ---------------------------------------------------

add_library(CADET::CompileOptions INTERFACE IMPORTED)
target_compile_features(CADET::CompileOptions INTERFACE cxx_std_17)
target_compile_features(CADET::CompileOptions INTERFACE cxx_std_23)
set(CMAKE_CXX_EXTENSIONS OFF)

if (WIN32)
Expand Down
4 changes: 2 additions & 2 deletions ThirdParty/tclap/include/tclap/ArgTraits.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,6 @@ struct ArgTraits {
//typedef ValueLike ValueCategory;
};

#endif

} // namespace

#endif
2 changes: 1 addition & 1 deletion ThirdParty/tclap/include/tclap/MultiArg.h
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class MultiArg : public Arg
/**
* Prevent accidental copying
*/
MultiArg<T>(const MultiArg<T>& rhs);
MultiArg(const MultiArg<T>& rhs);
MultiArg<T>& operator=(const MultiArg<T>& rhs);

};
Expand Down
2 changes: 1 addition & 1 deletion ThirdParty/tclap/include/tclap/ValueArg.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class ValueArg : public Arg
/**
* Prevent accidental copying
*/
ValueArg<T>(const ValueArg<T>& rhs);
ValueArg(const ValueArg<T>& rhs);
ValueArg<T>& operator=(const ValueArg<T>& rhs);
};

Expand Down
2 changes: 1 addition & 1 deletion src/build-tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ project(CadetBuildTools CXX C)
# Add the template code generator
add_executable(templateCodeGen ${CMAKE_SOURCE_DIR}/src/build-tools/templateCodeGen.cpp)
target_include_directories(templateCodeGen PRIVATE ${CMAKE_SOURCE_DIR}/ThirdParty/json ${CMAKE_SOURCE_DIR}/ThirdParty/inja)
target_compile_features(templateCodeGen PRIVATE cxx_std_14)
target_compile_features(templateCodeGen PRIVATE cxx_std_23)
set_target_properties(templateCodeGen PROPERTIES CXX_EXTENSIONS OFF)

# Info message
Expand Down

0 comments on commit e4c3373

Please sign in to comment.