From ce2ab085fd622fbd1fe8affe8dc4d039c0dfa750 Mon Sep 17 00:00:00 2001 From: ckormanyos Date: Sun, 19 Jan 2025 18:26:22 +0100 Subject: [PATCH] Remove a bit more unused backend code --- .../boost/multiprecision/cpp_double_fp.hpp | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/include/boost/multiprecision/cpp_double_fp.hpp b/include/boost/multiprecision/cpp_double_fp.hpp index 3151731ae..e2f2bb21a 100644 --- a/include/boost/multiprecision/cpp_double_fp.hpp +++ b/include/boost/multiprecision/cpp_double_fp.hpp @@ -745,31 +745,10 @@ class cpp_double_fp_backend return *this; } - constexpr cpp_double_fp_backend operator++(int) - { - cpp_double_fp_backend t(*this); - - ++(*this); - - return t; - } - - constexpr cpp_double_fp_backend operator--(int) - { - cpp_double_fp_backend t(*this); - - --(*this); - - return t; - } - - constexpr cpp_double_fp_backend& operator++() { return *this += cpp_double_fp_backend(float_type(1.0F)); } - constexpr cpp_double_fp_backend& operator--() { return *this -= cpp_double_fp_backend(float_type(1.0F)); } - // Unare minus operator. constexpr cpp_double_fp_backend operator-() const { - cpp_double_fp_backend v(*this); + cpp_double_fp_backend v { *this }; v.negate();