From 9301ccaf9fff921d5b866e6007edf5dcf6aa9d7c Mon Sep 17 00:00:00 2001 From: Marc Date: Sun, 11 Oct 2020 15:52:45 +0200 Subject: [PATCH] Removed FMT_REF_QUALIFIER completely --- include/fmt/format.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 59bb23a2..83c7c54f 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -272,12 +272,6 @@ FMT_END_NAMESPACE # define FMT_DEPRECATED_NUMERIC_ALIGN 0 #endif -#ifdef __cpp_ref_qualifiers -# define FMT_REF_QUALIFIER & -#else -# define FMT_REF_QUALIFIER -#endif - FMT_BEGIN_NAMESPACE namespace detail { @@ -834,7 +828,7 @@ struct FMT_EXTERN_TEMPLATE_API uint128_wrapper { uint64_t high() const FMT_NOEXCEPT { return uint64_t(internal_ >> 64); } uint64_t low() const FMT_NOEXCEPT { return uint64_t(internal_); } - uint128_wrapper& operator+=(uint64_t n) FMT_REF_QUALIFIER FMT_NOEXCEPT { + uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT { internal_ += n; return *this; } @@ -848,7 +842,7 @@ struct FMT_EXTERN_TEMPLATE_API uint128_wrapper { uint64_t high() const FMT_NOEXCEPT { return high_; } uint64_t low() const FMT_NOEXCEPT { return low_; } - uint128_wrapper& operator+=(uint64_t n) FMT_REF_QUALIFIER FMT_NOEXCEPT { + uint128_wrapper& operator+=(uint64_t n) FMT_NOEXCEPT { # if defined(_MSC_VER) && defined(_M_X64) unsigned char carry = _addcarry_u64(0, low_, n, &low_); _addcarry_u64(carry, high_, 0, &high_);