diff options
Diffstat (limited to 'src/common/Utilities/Util.h')
-rw-r--r-- | src/common/Utilities/Util.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h index cd8765b309f..c22584d970d 100644 --- a/src/common/Utilities/Util.h +++ b/src/common/Utilities/Util.h @@ -20,6 +20,7 @@ #include "Define.h" #include "Errors.h" +#include "Optional.h" #include <array> #include <string> @@ -345,8 +346,6 @@ inline std::vector<uint8> HexStrToByteVector(std::string_view str, bool reverse return buf; } -TC_COMMON_API bool StringToBool(std::string_view str); - TC_COMMON_API bool StringEqualI(std::string_view str1, std::string_view str2); TC_COMMON_API bool StringStartsWith(std::string_view haystack, std::string_view needle); TC_COMMON_API bool StringContainsStringI(std::string_view haystack, std::string_view needle); @@ -560,4 +559,13 @@ Ret* Coalesce(T1* first, T*... rest) return static_cast<Ret*>(first); } +namespace Trinity +{ + template <typename T> + struct dependant_false { static constexpr bool value = false; }; + + template <typename T> + constexpr bool dependant_false_v = dependant_false<T>::value; +} + #endif |