From 7f8e074ab053c3fbb30a0f5fc6bf33832bc349e7 Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 16 Jul 2022 15:26:12 +0000 Subject: [PATCH] Tighten access specifiers on enumerated_bitset --- common/main/d_bitset.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/main/d_bitset.h b/common/main/d_bitset.h index a91b74377..9f48e4ee6 100644 --- a/common/main/d_bitset.h +++ b/common/main/d_bitset.h @@ -14,9 +14,11 @@ namespace dcx { * See d_array.h for a full description. */ template -struct enumerated_bitset : std::bitset +class enumerated_bitset : std::bitset { using base_type = std::bitset; +public: + using base_type::base_type; constexpr typename base_type::reference operator[](E position) { return this->base_type::operator[](static_cast(position));