aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-01-15 20:08:44 +0100
committerAdrian Kummerlaender2015-01-15 20:08:44 +0100
commit2ebabfd7ef48660213286f5f55ebfcdd8fca0d91 (patch)
treef9a9613fd5dd36f4d6b406a5601cf861cde49d6a /src
parentf63675d062156627dc23aa74d51356a7ab77c914 (diff)
downloadTypeAsValue-2ebabfd7ef48660213286f5f55ebfcdd8fca0d91.tar
TypeAsValue-2ebabfd7ef48660213286f5f55ebfcdd8fca0d91.tar.gz
TypeAsValue-2ebabfd7ef48660213286f5f55ebfcdd8fca0d91.tar.bz2
TypeAsValue-2ebabfd7ef48660213286f5f55ebfcdd8fca0d91.tar.lz
TypeAsValue-2ebabfd7ef48660213286f5f55ebfcdd8fca0d91.tar.xz
TypeAsValue-2ebabfd7ef48660213286f5f55ebfcdd8fca0d91.tar.zst
TypeAsValue-2ebabfd7ef48660213286f5f55ebfcdd8fca0d91.zip
Removed unnecessary restrictions of the standard operator rules
Diffstat (limited to 'src')
-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