]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/safe_numerics/checked_default.hpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / boost / safe_numerics / checked_default.hpp
index 1b13fa527a44a6566c88866a45259513f0eaa391..d71921e989f62efda31b5c84e63c552db221bae1 100644 (file)
@@ -133,7 +133,7 @@ namespace checked {
 // the result type R can be deduced from the function parameters.
 
 template<typename R, typename T>
-constexpr checked_result<R> cast(const T & t) /* noexcept */ {
+constexpr inline checked_result<R> cast(const T & t) /* noexcept */ {
     return heterogeneous_checked_operation<
         R,
         std::numeric_limits<R>::min(),
@@ -142,71 +142,71 @@ constexpr checked_result<R> cast(const T & t) /* noexcept */ {
     >::cast(t);
 }
 template<typename R>
-constexpr checked_result<R> minus(const R & t) noexcept {
+constexpr inline checked_result<R> minus(const R & t) noexcept {
     return checked_operation<R>::minus(t);
 }
 template<typename R>
-constexpr checked_result<R> add(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> add(const R & t, const R & u) noexcept {
     return checked_operation<R>::add(t, u);
 }
 template<typename R>
-constexpr checked_result<R> subtract(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> subtract(const R & t, const R & u) noexcept {
     return checked_operation<R>::subtract(t, u);
 }
 template<typename R>
-constexpr checked_result<R> multiply(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> multiply(const R & t, const R & u) noexcept {
     return checked_operation<R>::multiply(t, u);
 }
 template<typename R>
-constexpr checked_result<R> divide(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> divide(const R & t, const R & u) noexcept {
     return checked_operation<R>::divide(t, u);
 }
 template<typename R>
-constexpr checked_result<R> modulus(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> modulus(const R & t, const R & u) noexcept {
     return checked_operation<R>::modulus(t, u);
 }
 template<typename R>
-constexpr checked_result<bool> less_than(const R & t, const R & u) noexcept {
+constexpr inline checked_result<bool> less_than(const R & t, const R & u) noexcept {
     return checked_operation<R>::less_than(t, u);
 }
 template<typename R>
-constexpr checked_result<bool> greater_than_equal(const R & t, const R & u) noexcept {
+constexpr inline checked_result<bool> greater_than_equal(const R & t, const R & u) noexcept {
     return ! checked_operation<R>::less_than(t, u);
 }
 template<typename R>
-constexpr checked_result<bool> greater_than(const R & t, const R & u) noexcept {
+constexpr inline checked_result<bool> greater_than(const R & t, const R & u) noexcept {
     return checked_operation<R>::greater_than(t, u);
 }
 template<typename R>
-constexpr checked_result<bool> less_than_equal(const R & t, const R & u) noexcept {
+constexpr inline checked_result<bool> less_than_equal(const R & t, const R & u) noexcept {
     return ! checked_operation<R>::greater_than(t, u);
 }
 template<typename R>
-constexpr checked_result<bool> equal(const R & t, const R & u) noexcept {
+constexpr inline checked_result<bool> equal(const R & t, const R & u) noexcept {
     return checked_operation<R>::equal(t, u);
 }
 template<typename R>
-constexpr checked_result<R> left_shift(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> left_shift(const R & t, const R & u) noexcept {
     return checked_operation<R>::left_shift(t, u);
 }
 template<typename R>
-constexpr checked_result<R> right_shift(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> right_shift(const R & t, const R & u) noexcept {
     return checked_operation<R>::right_shift(t, u);
 }
 template<typename R>
-constexpr checked_result<R> bitwise_or(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> bitwise_or(const R & t, const R & u) noexcept {
     return checked_operation<R>::bitwise_or(t, u);
 }
 template<typename R>
-constexpr checked_result<R> bitwise_xor(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> bitwise_xor(const R & t, const R & u) noexcept {
     return checked_operation<R>::bitwise_xor(t, u);
 }
 template<typename R>
-constexpr checked_result<R> bitwise_and(const R & t, const R & u) noexcept {
+constexpr inline checked_result<R> bitwise_and(const R & t, const R & u) noexcept {
     return checked_operation<R>::bitwise_and(t, u);
 }
 template<typename R>
-constexpr checked_result<R> bitwise_not(const R & t) noexcept {
+constexpr inline checked_result<R> bitwise_not(const R & t) noexcept {
     return checked_operation<R>::bitwise_not(t);
 }