lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 9e5f192 1/2: Require C++17


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 9e5f192 1/2: Require C++17
Date: Mon, 12 Mar 2018 19:33:27 -0400 (EDT)

branch: master
commit 9e5f192264123476d1a255d0d87254f8e656b209
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Require C++17
---
 bourn_cast.hpp | 25 +++++--------------------
 1 file changed, 5 insertions(+), 20 deletions(-)

diff --git a/bourn_cast.hpp b/bourn_cast.hpp
index d5a9a28..50d1714 100644
--- a/bourn_cast.hpp
+++ b/bourn_cast.hpp
@@ -72,10 +72,7 @@
 /// case of a signaling NaN [C99 F.2.1].
 
 template<typename To, typename From>
-#if 201402L < __cplusplus
-constexpr
-#endif // 201402L < __cplusplus
-inline To bourn_cast(From from, std::false_type, std::false_type)
+constexpr inline To bourn_cast(From from, std::false_type, std::false_type)
 {
     using   to_traits = std::numeric_limits<To  >;
     using from_traits = std::numeric_limits<From>;
@@ -99,10 +96,7 @@ inline To bourn_cast(From from, std::false_type, 
std::false_type)
 /// Integral to floating.
 
 template<typename To, typename From>
-#if 201402L < __cplusplus
-constexpr
-#endif // 201402L < __cplusplus
-inline To bourn_cast(From from, std::false_type, std::true_type)
+constexpr inline To bourn_cast(From from, std::false_type, std::true_type)
 {
     using   to_traits = std::numeric_limits<To  >;
     using from_traits = std::numeric_limits<From>;
@@ -168,10 +162,7 @@ inline To bourn_cast(From from, std::false_type, 
std::true_type)
 /// no need here for scalbln().
 
 template<typename To, typename From>
-#if 201402L < __cplusplus
-constexpr
-#endif // 201402L < __cplusplus
-inline To bourn_cast(From from, std::true_type, std::false_type)
+constexpr inline To bourn_cast(From from, std::true_type, std::false_type)
 {
     using   to_traits = std::numeric_limits<To  >;
     using from_traits = std::numeric_limits<From>;
@@ -224,10 +215,7 @@ inline To bourn_cast(From from, std::true_type, 
std::false_type)
 /// distributed under the GPL-compatible Boost Software License.
 
 template<typename To, typename From>
-#if 201402L < __cplusplus
-constexpr
-#endif // 201402L < __cplusplus
-inline To bourn_cast(From from, std::true_type, std::true_type)
+constexpr inline To bourn_cast(From from, std::true_type, std::true_type)
 {
     using   to_traits = std::numeric_limits<To  >;
     using from_traits = std::numeric_limits<From>;
@@ -309,10 +297,7 @@ inline To bourn_cast(From from, std::true_type, 
std::true_type)
 /// order to avoid undefined behavior.
 
 template<typename To, typename From>
-#if 201402L < __cplusplus
-constexpr
-#endif // 201402L < __cplusplus
-inline To bourn_cast(From from)
+constexpr inline To bourn_cast(From from)
 {
     using   to_traits = std::numeric_limits<To  >;
     using from_traits = std::numeric_limits<From>;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]