Skip to content

Commit

Permalink
[space] add private constructor with underlying integer to BitSet class
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Feb 18, 2025
1 parent eab579c commit f7bd940
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions vclib/core/include/vclib/space/core/bit_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,10 @@ class BitSet
/// @private
template<typename U>
friend std::ostream& operator<<(std::ostream& os, const BitSet<U>& bs);

private:
// constructor to initialize the BitSet with a given integral value
BitSet(T bits) : mBits(bits) {}
};

/**
Expand Down

0 comments on commit f7bd940

Please sign in to comment.