From 2c78f4dd1f52200e7061b809bb472dbcd499962e Mon Sep 17 00:00:00 2001 From: Shauren Date: Tue, 21 Dec 2021 18:29:52 +0100 Subject: Core/Misc: Resolve c++17 TODOs left in code as comments --- src/common/Utilities/advstd.h | 29 ----------------------------- 1 file changed, 29 deletions(-) (limited to 'src/common/Utilities') diff --git a/src/common/Utilities/advstd.h b/src/common/Utilities/advstd.h index 975fc2c85ad..a39e0baadc1 100644 --- a/src/common/Utilities/advstd.h +++ b/src/common/Utilities/advstd.h @@ -133,35 +133,6 @@ namespace advstd // C++20 std::remove_cvref_t template using remove_cvref_t = std::remove_cv_t>; - - template - struct negation : std::integral_constant { }; - - template - struct conjunction : std::true_type { }; - template - struct conjunction : B1 { }; - template - struct conjunction : std::conditional_t, B1> { }; - - template - struct disjunction : std::false_type { }; - template - struct disjunction : B1 { }; - template - struct disjunction : std::conditional_t> { }; - - template - constexpr T const& clamp(T const& val, T const& lo, T const& hi) - { - if (hi < val) - return hi; - - if (val < lo) - return lo; - - return val; - } } #endif -- cgit v1.2.3