susumu.yata
null+****@clear*****
Tue Mar 17 15:51:04 JST 2015
susumu.yata 2015-03-17 15:51:04 +0900 (Tue, 17 Mar 2015) New Revision: 52fdf54ff7d016c8a0bafb18993bfa38af95006f https://github.com/groonga/grnxx/commit/52fdf54ff7d016c8a0bafb18993bfa38af95006f Message: Remove constexpr from functions that call non-constexpr functions. Modified files: include/grnxx/data_types/scalar/float.hpp Modified: include/grnxx/data_types/scalar/float.hpp (+8 -8) =================================================================== --- include/grnxx/data_types/scalar/float.hpp 2015-03-17 15:32:42 +0900 (a2393a6) +++ include/grnxx/data_types/scalar/float.hpp 2015-03-17 15:51:04 +0900 (6828571) @@ -109,29 +109,29 @@ class Float { // -- Comparison operators -- - constexpr Bool operator==(Float rhs) const { + Bool operator==(Float rhs) const { return (is_na() || rhs.is_na()) ? Bool::na() : Bool(raw_ == rhs.raw_); } - constexpr Bool operator!=(Float rhs) const { + Bool operator!=(Float rhs) const { return (is_na() || rhs.is_na()) ? Bool::na() : Bool(raw_ != rhs.raw_); } - constexpr Bool operator<(Float rhs) const { + Bool operator<(Float rhs) const { return (is_na() || rhs.is_na()) ? Bool::na() : Bool(raw_ < rhs.raw_); } - constexpr Bool operator>(Float rhs) const { + Bool operator>(Float rhs) const { return (is_na() || rhs.is_na()) ? Bool::na() : Bool(raw_ > rhs.raw_); } - constexpr Bool operator<=(Float rhs) const { + Bool operator<=(Float rhs) const { return (is_na() || rhs.is_na()) ? Bool::na() : Bool(raw_ <= rhs.raw_); } - constexpr Bool operator>=(Float rhs) const { + Bool operator>=(Float rhs) const { return (is_na() || rhs.is_na()) ? Bool::na() : Bool(raw_ >= rhs.raw_); } - constexpr bool match(Float rhs) const { + bool match(Float rhs) const { return (is_na() && rhs.is_na()) || (raw_ == rhs.raw_); } - constexpr bool unmatch(Float rhs) const { + bool unmatch(Float rhs) const { return !(is_na() && rhs.is_na()) && (raw_ != rhs.raw_); } -------------- next part -------------- HTML����������������������������...Download