From 2ebabfd7ef48660213286f5f55ebfcdd8fca0d91 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 15 Jan 2015 20:08:44 +0100 Subject: Removed unnecessary restrictions of the standard operator rules --- src/operation.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src') diff --git a/src/operation.h b/src/operation.h index 66dbc41..2f3b747 100644 --- a/src/operation.h +++ b/src/operation.h @@ -10,11 +10,6 @@ template < typename Y > struct add { - static_assert( - equal_type::value, - "only values of the same type may be added" - ); - typedef std::integral_constant< decltype(X::value + Y::value), X::value + Y::value @@ -26,11 +21,6 @@ template < typename Y > struct substract { - static_assert( - equal_type::value, - "only values of the same type may be substracted" - ); - typedef std::integral_constant< decltype(X::value - Y::value), X::value - Y::value @@ -42,11 +32,6 @@ template < typename Y > struct multiply { - static_assert( - equal_type::value, - "only values of the same type may be multiplied" - ); - typedef std::integral_constant< decltype(X::value * Y::value), X::value * Y::value @@ -58,11 +43,6 @@ template < typename Y > struct divide { - static_assert( - equal_type::value, - "only values of the same type may be divided" - ); - typedef std::integral_constant< decltype(X::value / Y::value), X::value / Y::value -- cgit v1.2.3