From 9c5894520f4207092ab48ba9be4fb1290a2591ff Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Fri, 4 Mar 2016 21:39:25 +0900 Subject: [PATCH] Changed Bitset to use Combined lists --- src/EC/Bitset.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/EC/Bitset.hpp b/src/EC/Bitset.hpp index 6ddd1d3..f95470d 100644 --- a/src/EC/Bitset.hpp +++ b/src/EC/Bitset.hpp @@ -4,6 +4,7 @@ #include #include "Meta/TypeList.hpp" +#include "Meta/Combine.hpp" namespace EC { @@ -11,16 +12,18 @@ namespace EC struct Bitset : public std::bitset { + using Combined = EC::Meta::Combine; + template constexpr auto getComponentBit() { - return (*this)[EC::Meta::IndexOf::value]; + return (*this)[EC::Meta::IndexOf::value]; } template constexpr auto getTagBit() { - return (*this)[ComponentsList::size + EC::Meta::IndexOf::value]; + return (*this)[EC::Meta::IndexOf::value]; } }; }