Skip to content

Commit e4c3373

Browse files
Update to cpp23 standard (#204)
Co-authored-by: Samuel Leweke <[email protected]>
1 parent 183d9a2 commit e4c3373

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ endif()
436436
# ---------------------------------------------------
437437

438438
add_library(CADET::CompileOptions INTERFACE IMPORTED)
439-
target_compile_features(CADET::CompileOptions INTERFACE cxx_std_17)
439+
target_compile_features(CADET::CompileOptions INTERFACE cxx_std_23)
440440
set(CMAKE_CXX_EXTENSIONS OFF)
441441

442442
if (WIN32)

ThirdParty/tclap/include/tclap/ArgTraits.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ struct ArgTraits {
8282
//typedef ValueLike ValueCategory;
8383
};
8484

85-
#endif
86-
8785
} // namespace
86+
87+
#endif

ThirdParty/tclap/include/tclap/MultiArg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class MultiArg : public Arg
239239
/**
240240
* Prevent accidental copying
241241
*/
242-
MultiArg<T>(const MultiArg<T>& rhs);
242+
MultiArg(const MultiArg<T>& rhs);
243243
MultiArg<T>& operator=(const MultiArg<T>& rhs);
244244

245245
};

ThirdParty/tclap/include/tclap/ValueArg.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ class ValueArg : public Arg
254254
/**
255255
* Prevent accidental copying
256256
*/
257-
ValueArg<T>(const ValueArg<T>& rhs);
257+
ValueArg(const ValueArg<T>& rhs);
258258
ValueArg<T>& operator=(const ValueArg<T>& rhs);
259259
};
260260

src/build-tools/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ project(CadetBuildTools CXX C)
1616
# Add the template code generator
1717
add_executable(templateCodeGen ${CMAKE_SOURCE_DIR}/src/build-tools/templateCodeGen.cpp)
1818
target_include_directories(templateCodeGen PRIVATE ${CMAKE_SOURCE_DIR}/ThirdParty/json ${CMAKE_SOURCE_DIR}/ThirdParty/inja)
19-
target_compile_features(templateCodeGen PRIVATE cxx_std_14)
19+
target_compile_features(templateCodeGen PRIVATE cxx_std_23)
2020
set_target_properties(templateCodeGen PROPERTIES CXX_EXTENSIONS OFF)
2121

2222
# Info message

0 commit comments

Comments
 (0)