Skip to content

Commit 85f50a4

Browse files
committed
refactor: Fix "error C2248: cannot access private member" on MSVC
1 parent 3aaf732 commit 85f50a4

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/util/bitdeque.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,17 @@
1414

1515
/** Class that mimics std::deque<bool>, but with std::vector<bool>'s bit packing.
1616
*
17-
* BlobSize selects the (minimum) number of bits that are allocated at once.
17+
* BITS_PER_WORD selects the (minimum) number of bits that are allocated at once.
1818
* Larger values reduce the asymptotic memory usage overhead, at the cost of
1919
* needing larger up-front allocations. The default is 4096 bytes.
2020
*/
21-
template<int BlobSize = 4096 * 8>
21+
template<int BITS_PER_WORD = 4096 * 8>
2222
class bitdeque
2323
{
2424
// Internal definitions
25-
using word_type = std::bitset<BlobSize>;
25+
using word_type = std::bitset<BITS_PER_WORD>;
2626
using deque_type = std::deque<word_type>;
27-
static_assert(BlobSize > 0);
28-
static constexpr int BITS_PER_WORD = BlobSize;
27+
static_assert(BITS_PER_WORD > 0);
2928

3029
// Forward and friend declarations of iterator types.
3130
template<bool Const> class Iterator;

0 commit comments

Comments
 (0)