From 8df8eaf92c0ef0e99b9cda9fc0de51e8443e5fc8 Mon Sep 17 00:00:00 2001 From: yumetodo Date: Wed, 23 Mar 2016 01:34:36 +0900 Subject: [PATCH] =?UTF-8?q?bel=5Fc=20class=20:=20constexpr=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E3=81=AB=E3=83=9E=E3=82=AF=E3=83=AD=E3=82=92=E4=BD=BF?= =?UTF-8?q?=E3=81=A3=E3=81=A6=E3=81=84=E3=81=AA=E3=81=8B=E3=81=9F=E3=81=AE?= =?UTF-8?q?=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dxlibex/basic_types/bel.hpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/dxlibex/basic_types/bel.hpp b/dxlibex/basic_types/bel.hpp index 19f4a01..6ec533a 100644 --- a/dxlibex/basic_types/bel.hpp +++ b/dxlibex/basic_types/bel.hpp @@ -164,7 +164,7 @@ namespace dxle { } template - constexpr common_type_t, bel_c> + DXLE_CONSTEXPR common_type_t, bel_c> operator+(const bel_c& l, const bel_c& r) { typedef bel_c bel_c1; @@ -174,7 +174,7 @@ namespace dxle { } template - constexpr common_type_t, bel_c> + DXLE_CONSTEXPR common_type_t, bel_c> operator-(const bel_c& l, const bel_c& r) { typedef bel_c bel_c1; @@ -193,7 +193,7 @@ namespace dxle { } template - constexpr bel_c, _Period> + DXLE_CONSTEXPR bel_c, _Period> operator*(const bel_c& b, const T2& r) { typedef bel_c, _Period> result_t; @@ -201,14 +201,14 @@ namespace dxle { } template - constexpr bel_c, _Period> + DXLE_CONSTEXPR bel_c, _Period> operator*(const T1& r, const bel_c& b) { return b * r; } template - constexpr bel_c::value, T2>>, _Period> + DXLE_CONSTEXPR bel_c::value, T2>>, _Period> operator/(const bel_c& b, const T2& r) { typedef bel_c, _Period> result_t; @@ -216,7 +216,7 @@ namespace dxle { } template - constexpr common_type_t + DXLE_CONSTEXPR common_type_t operator/(const bel_c& l, const bel_c& r) { typedef bel_c bel_c1; @@ -227,7 +227,7 @@ namespace dxle { // DR 934. template - constexpr bel_c::value, T2>>, _Period> + DXLE_CONSTEXPR bel_c::value, T2>>, _Period> operator%(const bel_c& b, const T2& r) { typedef bel_c, _Period> result_t; @@ -235,7 +235,7 @@ namespace dxle { } template - constexpr common_type_t, bel_c> + DXLE_CONSTEXPR common_type_t, bel_c> operator%(const bel_c& l, const bel_c& r) { typedef bel_c bel_c1; @@ -246,7 +246,7 @@ namespace dxle { // comparisons template - constexpr bool operator==(const bel_c& l, const bel_c& r) + DXLE_CONSTEXPR bool operator==(const bel_c& l, const bel_c& r) { typedef bel_c bel_c1; typedef bel_c bel_c2; @@ -255,7 +255,7 @@ namespace dxle { } template - constexpr bool operator<(const bel_c& l, const bel_c& r) + DXLE_CONSTEXPR bool operator<(const bel_c& l, const bel_c& r) { typedef bel_c bel_c1; typedef bel_c bel_c2; @@ -264,25 +264,25 @@ namespace dxle { } template - constexpr bool operator!=(const bel_c& l, const bel_c& r) + DXLE_CONSTEXPR bool operator!=(const bel_c& l, const bel_c& r) { return !(l == r); } template - constexpr bool operator<=(const bel_c& l, const bel_c& r) + DXLE_CONSTEXPR bool operator<=(const bel_c& l, const bel_c& r) { return !(r < l); } template - constexpr bool operator>(const bel_c& l, const bel_c& r) + DXLE_CONSTEXPR bool operator>(const bel_c& l, const bel_c& r) { return r < l; } template - constexpr bool operator>=(const bel_c& l, const bel_c& r) + DXLE_CONSTEXPR bool operator>=(const bel_c& l, const bel_c& r) { return !(l < r); }