Skip to content

Commit 21391dc

Browse files
committed
BLD: Change minimum C++ standard to C++17
1 parent 507b857 commit 21391dc

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Changelog
22

3-
## 0.28.1 - TBD
3+
## 0.29.0 - TBD
44

55
### Enhancements
66
- Fixed documentation for using external versions of libraries (credit: @ElBellaCiao)
77

8+
### Breaking changes
9+
- Updated the minimum supported C++ standard to C++17
10+
811
## 0.28.0 - 2025-01-21
912

1013
### Breaking changes

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ message(STATUS "Added all header and implementation files.")
100100
# Set the project standard and warnings
101101
#
102102

103-
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
103+
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
104104
include(cmake/CompilerWarnings.cmake)
105105
set_target_warnings(${PROJECT_NAME})
106106
include(cmake/Sanitizers.cmake)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ The client supports both streaming real-time and historical market data through
99

1010
## Usage
1111

12-
The minimum C++ standard is C++11 and the minimum CMake version is 3.14.
12+
The minimum C++ standard is C++17 and the minimum CMake version is 3.14.
1313

1414
### Integration
1515

16-
The easiest way to use our library is by embedding it with [CMake FetchContent](https://cmake.org/cmake/help/v3.11/module/FetchContent.html).
16+
The easiest way to use our library is by embedding it with [CMake FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html).
1717
Your `CMakeLists.txt` should look something like the following:
1818

1919
```cmake

cmake/Utils.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ function(add_example_target name file)
5454
PRIVATE
5555
databento::databento
5656
)
57-
target_compile_features(${name} PUBLIC cxx_std_11)
57+
target_compile_features(${name} PUBLIC cxx_std_17)
5858
set_target_warnings(${name})
5959
endfunction()

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ target_include_directories(
7878
# Set the compiler standard
7979
#
8080

81-
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_11)
81+
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
8282
# Ensure std::string debug info is included
8383
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND CMAKE_BUILD_TYPE STREQUAL "Debug")
8484
target_compile_options(${PROJECT_NAME} PRIVATE -fstandalone-debug)

0 commit comments

Comments
 (0)