Skip to content

Commit 0db1b56

Browse files
committed
fixed msvc c++11 to c++17 error and fixed c++26 build
1 parent 5b4c887 commit 0db1b56

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/cross-platform-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ jobs:
235235
strategy:
236236
fail-fast: false
237237
matrix:
238-
std: [26, 23, 20, 17, 14, 11]
238+
std: [23, 20, 17, 14, 11]
239239

240240
steps:
241241
- uses: actions/checkout@v4

src/vmaware.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5572,7 +5572,7 @@ struct VM {
55725572
};
55735573

55745574
// random logical CPU, but exclude the trigger_thread, first, second and last available logical CPUs, avoiding SMT siblings
5575-
auto get_counter_mask = []() -> DWORD_PTR {
5575+
auto get_counter_mask = [ct_seed]() -> DWORD_PTR {
55765576
const HANDLE current_process = reinterpret_cast<HANDLE>(-1LL);
55775577
DWORD_PTR proc_mask = 0, sys_mask = 0;
55785578
GetProcessAffinityMask(current_process, &proc_mask, &sys_mask);

0 commit comments

Comments
 (0)