From 85f50a46c50e7e56b5ee2d7258021939cd80c550 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 28 Apr 2024 07:11:24 +0100 Subject: [PATCH 1/2] refactor: Fix "error C2248: cannot access private member" on MSVC --- src/util/bitdeque.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/util/bitdeque.h b/src/util/bitdeque.h index 1e34b72475..ac9d302420 100644 --- a/src/util/bitdeque.h +++ b/src/util/bitdeque.h @@ -14,18 +14,17 @@ /** Class that mimics std::deque, but with std::vector's bit packing. * - * BlobSize selects the (minimum) number of bits that are allocated at once. + * BITS_PER_WORD selects the (minimum) number of bits that are allocated at once. * Larger values reduce the asymptotic memory usage overhead, at the cost of * needing larger up-front allocations. The default is 4096 bytes. */ -template +template class bitdeque { // Internal definitions - using word_type = std::bitset; + using word_type = std::bitset; using deque_type = std::deque; - static_assert(BlobSize > 0); - static constexpr int BITS_PER_WORD = BlobSize; + static_assert(BITS_PER_WORD > 0); // Forward and friend declarations of iterator types. template class Iterator; From 774359b4a96d2724dc70f900cb71e084a77164da Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Sun, 28 Apr 2024 07:11:32 +0100 Subject: [PATCH 2/2] build, msvc: Compile `test\fuzz\bitdeque.cpp` --- build_msvc/fuzz/fuzz.vcxproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_msvc/fuzz/fuzz.vcxproj b/build_msvc/fuzz/fuzz.vcxproj index fb77251a17..e7ee211b2d 100644 --- a/build_msvc/fuzz/fuzz.vcxproj +++ b/build_msvc/fuzz/fuzz.vcxproj @@ -9,8 +9,8 @@ $(SolutionDir)$(Platform)\$(Configuration)\ - - + + $(IntDir)test_fuzz_util_descriptor.obj