From f63675d062156627dc23aa74d51356a7ab77c914 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 15 Jan 2015 20:06:41 +0100 Subject: Completed basic math operators and fixed their result type * the result type now depends on the `decltype` of the performed operation --- src/type.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/type.h') diff --git a/src/type.h b/src/type.h index 1149520..304bff4 100644 --- a/src/type.h +++ b/src/type.h @@ -20,6 +20,15 @@ using equal_type = typename std::integral_constant< std::is_same::value >::type; +template < + typename X, + typename Y +> +using equal_value = typename std::integral_constant< + bool, + X::value == Y::value +>::type; + } #endif // TYPEASVALUE_SRC_TYPE_H_ -- cgit v1.2.3