cd30e0b follow-up (I could've sworn I pushed that to the PR branch. Sorry, Shauren.)

This commit is contained in:
Treeston
2020-08-26 23:38:31 +02:00
parent cd30e0b86c
commit 3564ad18bf
3 changed files with 7 additions and 9 deletions

View File

@@ -21,6 +21,7 @@
#include "Define.h"
#include "Errors.h"
#include "Optional.h"
#include "Types.h"
#include "Util.h"
#include <charconv>
#include <string>

View File

@@ -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__

View File

@@ -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