aboutsummaryrefslogtreecommitdiff
path: root/src/operation
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-01-16 22:00:12 +0100
committerAdrian Kummerlaender2015-01-16 22:00:12 +0100
commit5ead1bfab50ef7b3f746f298c53788c833f03ce4 (patch)
tree050692ba9d7ccb0b4fdd255cc70ea7e4a182a926 /src/operation
parentf751632317a8cfb8474645e5964008bc7b6b6d90 (diff)
downloadTypeAsValue-5ead1bfab50ef7b3f746f298c53788c833f03ce4.tar
TypeAsValue-5ead1bfab50ef7b3f746f298c53788c833f03ce4.tar.gz
TypeAsValue-5ead1bfab50ef7b3f746f298c53788c833f03ce4.tar.bz2
TypeAsValue-5ead1bfab50ef7b3f746f298c53788c833f03ce4.tar.lz
TypeAsValue-5ead1bfab50ef7b3f746f298c53788c833f03ce4.tar.xz
TypeAsValue-5ead1bfab50ef7b3f746f298c53788c833f03ce4.tar.zst
TypeAsValue-5ead1bfab50ef7b3f746f298c53788c833f03ce4.zip
Capitalized math operations to fit naming scheme
Diffstat (limited to 'src/operation')
-rw-r--r--src/operation/math.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/operation/math.h b/src/operation/math.h
index 82740b6..fd6e031 100644
--- a/src/operation/math.h
+++ b/src/operation/math.h
@@ -9,7 +9,7 @@ template <
typename X,
typename Y
>
-using add = typename std::integral_constant<
+using Add = typename std::integral_constant<
decltype(X::value + Y::value),
X::value + Y::value
>::type;
@@ -18,7 +18,7 @@ template <
typename X,
typename Y
>
-using substract = typename std::integral_constant<
+using Substract = typename std::integral_constant<
decltype(X::value - Y::value),
X::value - Y::value
>::type;
@@ -27,7 +27,7 @@ template <
typename X,
typename Y
>
-using multiply = typename std::integral_constant<
+using Multiply = typename std::integral_constant<
decltype(X::value * Y::value),
X::value * Y::value
>::type;
@@ -36,7 +36,7 @@ template <
typename X,
typename Y
>
-using divide = typename std::integral_constant<
+using Divide = typename std::integral_constant<
decltype(X::value / Y::value),
X::value / Y::value
>::type;