From 2ce0f42c146c34002665168d0b9422d767b18332 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 22 Apr 2018 23:43:05 -0400 Subject: [PATCH] Common: Move BitSet into the Common namespace This should be under the common namespace, considering where it's living --- Source/Core/Common/BitSet.h | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/Source/Core/Common/BitSet.h b/Source/Core/Common/BitSet.h index f8506e7c89..752a28faea 100644 --- a/Source/Core/Common/BitSet.h +++ b/Source/Core/Common/BitSet.h @@ -83,8 +83,7 @@ inline int LeastSignificantSetBit(u64 val) } #endif -// namespace avoids conflict with OS X Carbon; don't use BitSet directly -namespace BS +namespace Common { // Similar to std::bitset, this is a class which encapsulates a bitset, i.e. // using the set bits of an integer to represent a set of integers. Like that @@ -207,9 +206,9 @@ public: constexpr Iterator end() const { return Iterator(m_val, -1); } IntTy m_val; }; -} +} // namespace Common -typedef BS::BitSet BitSet8; -typedef BS::BitSet BitSet16; -typedef BS::BitSet BitSet32; -typedef BS::BitSet BitSet64; +using BitSet8 = Common::BitSet; +using BitSet16 = Common::BitSet; +using BitSet32 = Common::BitSet; +using BitSet64 = Common::BitSet;