aboutsummaryrefslogtreecommitdiffstats
path: root/include/chilbert/detail
diff options
context:
space:
mode:
Diffstat (limited to 'include/chilbert/detail')
-rw-r--r--include/chilbert/detail/BitVecIndex.hpp2
-rw-r--r--include/chilbert/detail/BitVecMask.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/chilbert/detail/BitVecIndex.hpp b/include/chilbert/detail/BitVecIndex.hpp
index 0998968..c8d0469 100644
--- a/include/chilbert/detail/BitVecIndex.hpp
+++ b/include/chilbert/detail/BitVecIndex.hpp
@@ -34,7 +34,7 @@ struct BitVecIndex
static constexpr size_t bits_per_rack = sizeof(Rack) * CHAR_BIT;
- BitVecIndex(const size_t bits)
+ explicit BitVecIndex(const size_t bits)
: rack{bits / bits_per_rack}
, bit{bits - rack * bits_per_rack}
{
diff --git a/include/chilbert/detail/BitVecMask.hpp b/include/chilbert/detail/BitVecMask.hpp
index f015d63..5674114 100644
--- a/include/chilbert/detail/BitVecMask.hpp
+++ b/include/chilbert/detail/BitVecMask.hpp
@@ -35,7 +35,7 @@ struct BitVecMask
{
static constexpr size_t bits_per_rack = sizeof(Rack) * CHAR_BIT;
- BitVecMask(const size_t index)
+ explicit BitVecMask(const size_t index)
: rack{index / bits_per_rack}
, mask{Rack{1} << (index - rack * bits_per_rack)}
{