lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master c47d583 3/5: Remove redundancy


From: Greg Chicares
Subject: [lmi-commits] [lmi] master c47d583 3/5: Remove redundancy
Date: Tue, 11 May 2021 12:03:52 -0400 (EDT)

branch: master
commit c47d583769a60842afb9c407f33e9271d8c92016
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Remove redundancy
    
    A constexpr function is implicitly inline.
---
 bourn_cast.hpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bourn_cast.hpp b/bourn_cast.hpp
index f5dc86f..c935741 100644
--- a/bourn_cast.hpp
+++ b/bourn_cast.hpp
@@ -70,7 +70,7 @@
 /// case of a signaling NaN [C99 F.2.1].
 
 template<typename To, typename From>
-constexpr inline To bourn_cast(From from, std::false_type, std::false_type)
+constexpr 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>;
@@ -103,7 +103,7 @@ constexpr inline To bourn_cast(From from, std::false_type, 
std::false_type)
 /// with pragmata.
 
 template<typename To, typename From>
-constexpr inline To bourn_cast(From from, std::false_type, std::true_type)
+constexpr 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,7 +168,7 @@ constexpr inline To bourn_cast(From from, std::false_type, 
std::true_type)
 /// no need here for scalbln().
 
 template<typename To, typename From>
-constexpr inline To bourn_cast(From from, std::true_type, std::false_type)
+constexpr 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>;
@@ -210,7 +210,7 @@ constexpr 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>
-constexpr inline To bourn_cast(From from, std::true_type, std::true_type)
+constexpr 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>;
@@ -292,7 +292,7 @@ constexpr inline To bourn_cast(From from, std::true_type, 
std::true_type)
 /// order to avoid undefined behavior.
 
 template<typename To, typename From>
-constexpr inline To bourn_cast(From from)
+constexpr 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]