Move Catch::always_false into decomposer.hpp

This commit is contained in:
Martin Hořeňovský 2022-12-09 16:18:27 +01:00
parent 28e651f152
commit 24607694cb
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A
2 changed files with 5 additions and 4 deletions

View File

@ -10,7 +10,6 @@
#include <catch2/catch_tostring.hpp>
#include <catch2/internal/catch_stringref.hpp>
#include <catch2/internal/catch_meta.hpp>
#include <catch2/internal/catch_compare_traits.hpp>
#include <catch2/internal/catch_test_failure_exception.hpp>
#include <catch2/internal/catch_logical_traits.hpp>
@ -37,6 +36,9 @@
namespace Catch {
template <typename T>
struct always_false : std::false_type {};
class ITransientExpression {
bool m_isBinaryExpression;
bool m_result;

View File

@ -11,10 +11,9 @@
#include <type_traits>
namespace Catch {
template<typename T>
struct always_false : std::false_type {};
template <typename>
struct true_given : std::true_type {};
template <typename> struct true_given : std::true_type {};
struct is_callable_tester {
template <typename Fun, typename... Args>
static true_given<decltype(std::declval<Fun>()(std::declval<Args>()...))> test(int);