diff options
| author | Stefan Boberg <[email protected]> | 2021-09-29 22:26:07 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-29 22:26:07 +0200 |
| commit | 24d571fc92761d84a186a01803036720b8c5fba9 (patch) | |
| tree | 2a7321fe2172e8f49d44872f078193ecf3b02bd1 /zencore/include | |
| parent | stats: added Histogram, UniformSample and SampleSnapshot (diff) | |
| parent | Prevent mesh tests to crash by moving behind define. (diff) | |
| download | zen-24d571fc92761d84a186a01803036720b8c5fba9.tar.xz zen-24d571fc92761d84a186a01803036720b8c5fba9.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
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) |