Skip to content

Commit 3a58ce0

Browse files
committed
Release v5.4.4
2 parents cd5c795 + 06fbc4f commit 3a58ce0

6 files changed

Lines changed: 26 additions & 8 deletions

File tree

.github/workflows/actions_build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -190,14 +190,14 @@ jobs:
190190
shell: bash
191191
run: make doc_comms
192192

193-
build_msvc_2019:
194-
runs-on: windows-2019
193+
build_msvc_2022:
194+
runs-on: windows-2022
195195
strategy:
196196
fail-fast: false
197197
matrix:
198198
type: [Debug, Release]
199199
arch: [Win32, x64]
200-
cpp: [11, 14, 17]
200+
cpp: [11, 14, 17, 20]
201201

202202
steps:
203203
- uses: actions/checkout@v4
@@ -224,14 +224,15 @@ jobs:
224224
shell: cmd
225225
run: ctest -V
226226

227-
build_msvc_2022:
228-
runs-on: windows-2022
227+
228+
build_msvc_2025:
229+
runs-on: windows-2025
229230
strategy:
230231
fail-fast: false
231232
matrix:
232233
type: [Debug, Release]
233234
arch: [Win32, x64]
234-
cpp: [11, 14, 17, 20]
235+
cpp: [11, 14, 17, 20, 23]
235236

236237
steps:
237238
- uses: actions/checkout@v4

include/comms/CompileControl.h

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
#define COMMS_IS_CLANG_16_OR_ABOVE (COMMS_IS_CLANG && (__clang_major__ >= 16))
8989
#define COMMS_IS_CLANG_18_OR_BELOW (COMMS_IS_CLANG && (__clang_major__ <= 18))
9090
#define COMMS_IS_CLANG_19_OR_BELOW (COMMS_IS_CLANG && (__clang_major__ <= 19))
91+
#define COMMS_IS_MSVC_2025 (COMMS_IS_MSVC && (_MSC_VER >= 1940) && (_MSC_VER < 1949))
92+
#define COMMS_IS_MSVC_2025_OR_BELOW (COMMS_IS_MSVC && (_MSC_VER < 1950))
93+
#define COMMS_IS_MSVC_2022 (COMMS_IS_MSVC && (_MSC_VER >= 1930) && (_MSC_VER < 1939))
9194
#define COMMS_IS_MSVC_2019 (COMMS_IS_MSVC && (_MSC_VER >= 1920) && (_MSC_VER < 1930))
9295
#define COMMS_IS_MSVC_2019_OR_BELOW (COMMS_IS_MSVC && (_MSC_VER < 1930))
9396
#define COMMS_IS_MSVC_2017_OR_BELOW (COMMS_IS_MSVC && (_MSC_VER < 1920))
@@ -102,7 +105,12 @@
102105
#define COMMS_IS_CPP20 (__cplusplus >= 202002L)
103106
#define COMMS_IS_CPP23 (__cplusplus >= 202302L)
104107

105-
#if COMMS_IS_MSVC_2019_OR_BELOW // Visual Studio 2019
108+
#if COMMS_IS_MSVC_2025_OR_BELOW
109+
#undef COMMS_IS_CPP23
110+
#define COMMS_IS_CPP23 (__cplusplus >= 202003L)
111+
#endif
112+
113+
#if COMMS_IS_MSVC_2019_OR_BELOW
106114
#undef COMMS_IS_CPP20
107115
#define COMMS_IS_CPP20 (__cplusplus >= 201704L)
108116
#endif

include/comms/field/basic/IntValue.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "comms/ErrorStatus.h"
1111
#include "comms/field/tag.h"
1212

13+
#include <ratio>
1314
#include <type_traits>
1415

1516
namespace comms

include/comms/version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define COMMS_MINOR_VERSION 4U
1818

1919
/// @brief Patch level of the library
20-
#define COMMS_PATCH_VERSION 3U
20+
#define COMMS_PATCH_VERSION 4U
2121

2222
/// @brief Macro to create numeric version as single unsigned number
2323
#define COMMS_MAKE_VERSION(major_, minor_, patch_) \

test/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ function (test_func test_suite_name)
2020
endif ()
2121

2222
cc_cxxtest_add_test (NAME ${name} SRC ${tests} ${valgrand_args})
23+
24+
if ("${CMAKE_CXX_STANDARD}" STREQUAL "23")
25+
# Visual Studio 2025 doesn't seem to properly detect C++23
26+
target_compile_definitions(${name} PRIVATE
27+
$<$<CXX_COMPILER_ID:MSVC>:_SILENCE_ALL_CXX23_DEPRECATION_WARNINGS>
28+
)
29+
endif ()
2330
endfunction ()
2431

2532
#################################################################

test/Fields.th

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <limits>
1111
#include <memory>
1212
#include <iterator>
13+
#include <ratio>
1314
#include <type_traits>
1415

1516
#include "comms/comms.h"

0 commit comments

Comments
 (0)