diff options
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/string.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zencore/include/zencore/string.h b/zencore/include/zencore/string.h index 2c0d10577..c205b199d 100644 --- a/zencore/include/zencore/string.h +++ b/zencore/include/zencore/string.h @@ -219,7 +219,7 @@ public: return AppendRange(String.data(), String.data() + String.size()); } - inline void RemoveSuffix(int32_t Count) + inline void RemoveSuffix(uint32_t Count) { ZEN_ASSERT(Count <= Size()); m_CurPos -= Count; @@ -717,7 +717,7 @@ public: template<typename CharType> constexpr inline bool Contains(CharType Char) const { - using UnsignedCharType = std::make_unsigned<CharType>::type; + using UnsignedCharType = typename std::make_unsigned<CharType>::type; return !!TestImpl((UnsignedCharType)Char); } @@ -726,7 +726,7 @@ public: template<typename CharType> constexpr inline uint64_t Test(CharType Char) const { - using UnsignedCharType = std::make_unsigned<CharType>::type; + using UnsignedCharType = typename std::make_unsigned<CharType>::type; return TestImpl((UnsignedCharType)Char); } @@ -734,7 +734,7 @@ public: /** Create new set with specified character in it */ constexpr inline AsciiSet operator+(char Char) const { - using UnsignedCharType = std::make_unsigned<char>::type; + using UnsignedCharType = typename std::make_unsigned<char>::type; InitData Bitset = {LoMask, HiMask}; SetImpl(Bitset, (UnsignedCharType)Char); @@ -960,7 +960,7 @@ private: template<typename CharType, int N> static constexpr InitData StringToBitset(const CharType (&Chars)[N]) { - using UnsignedCharType = std::make_unsigned<CharType>::type; + using UnsignedCharType = typename std::make_unsigned<CharType>::type; InitData Bitset = {0, 0}; for (int I = 0; I < N - 1; ++I) |