Skip to content

Commit

Permalink
Common/Bitset: Make initializer_list constructor constexpr
Browse files Browse the repository at this point in the history
This was able to be constexpr since C++14.
  • Loading branch information
lioncash committed Jan 25, 2023
1 parent 6db2171 commit 6446fa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Core/Common/BitSet.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class BitSet

constexpr BitSet() : m_val(0) {}
constexpr explicit BitSet(IntTy val) : m_val(val) {}
BitSet(std::initializer_list<int> init)
constexpr BitSet(std::initializer_list<int> init)
{
m_val = 0;
for (int bit : init)
Expand Down

0 comments on commit 6446fa7

Please sign in to comment.