aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2020-08-26 23:38:31 +0200
committerTreeston <treeston.mmoc@gmail.com>2020-08-26 23:38:31 +0200
commit3564ad18bff3c5b581fd6eadd08a6b15ca593151 (patch)
tree9f8fa710cc00e3377d9dd1600f40a2e1c171b45f /src
parentcd30e0b86ce6ee88386a91cebdf353fc55805c57 (diff)
cd30e0b follow-up (I could've sworn I pushed that to the PR branch. Sorry, Shauren.)
Diffstat (limited to 'src')
-rw-r--r--src/common/Utilities/StringConvert.h1
-rw-r--r--src/common/Utilities/Types.h6
-rw-r--r--src/common/Utilities/Util.h9
3 files changed, 7 insertions, 9 deletions
diff --git a/src/common/Utilities/StringConvert.h b/src/common/Utilities/StringConvert.h
index 7af791b91a1..f90e47cab10 100644
--- a/src/common/Utilities/StringConvert.h
+++ b/src/common/Utilities/StringConvert.h
@@ -21,6 +21,7 @@
#include "Define.h"
#include "Errors.h"
#include "Optional.h"
+#include "Types.h"
#include "Util.h"
#include <charconv>
#include <string>
diff --git a/src/common/Utilities/Types.h b/src/common/Utilities/Types.h
index ab78fb871a9..223a09c4ee3 100644
--- a/src/common/Utilities/Types.h
+++ b/src/common/Utilities/Types.h
@@ -63,6 +63,12 @@ namespace Trinity
*/
template<template<typename...> typename Check, typename... Ts>
using find_type_if_t = typename find_type_if<Check, Ts...>::type;
+
+ template <typename T>
+ struct dependant_false { static constexpr bool value = false; };
+
+ template <typename T>
+ constexpr bool dependant_false_v = dependant_false<T>::value;
}
#endif // Types_h__
diff --git a/src/common/Utilities/Util.h b/src/common/Utilities/Util.h
index c22584d970d..b3e37424a09 100644
--- a/src/common/Utilities/Util.h
+++ b/src/common/Utilities/Util.h
@@ -559,13 +559,4 @@ 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