aboutsummaryrefslogtreecommitdiff
path: root/src/operation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/operation.h')
-rw-r--r--src/operation.h20
1 files changed, 0 insertions, 20 deletions
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<X, Y>::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<X, Y>::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<X, Y>::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<X, Y>::value,
- "only values of the same type may be divided"
- );
-
typedef std::integral_constant<
decltype(X::value / Y::value),
X::value / Y::value