From 61656a5a1b213b919c7361e804c56e83cb3b1985 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 2 Jan 2020 12:31:03 +0100 Subject: impl: fix subtractable traits --- include/newtype/impl/type_traits_extensions.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/newtype/impl/type_traits_extensions.hpp b/include/newtype/impl/type_traits_extensions.hpp index 56824e2..d3e6d8b 100644 --- a/include/newtype/impl/type_traits_extensions.hpp +++ b/include/newtype/impl/type_traits_extensions.hpp @@ -595,7 +595,7 @@ namespace nt::impl * @note This specialization forms the case for subtractable T */ template - struct is_subtractable() + std::declval())>> : std::true_type + struct is_subtractable() - std::declval())>> : std::true_type { }; @@ -625,8 +625,8 @@ namespace nt::impl * @note This specialization forms the case for subtractable T detemining if T is noexcept subtractable */ template - struct is_nothrow_subtractable() + std::declval())>> - : std::bool_constant() + std::declval())> + struct is_nothrow_subtractable() - std::declval())>> + : std::bool_constant() - std::declval())> { }; -- cgit v1.2.3