From 34eabd77a232d2ec687849db133ab15e85887966 Mon Sep 17 00:00:00 2001 From: Cory Fields Date: Mon, 2 Feb 2026 22:59:33 +0000 Subject: [PATCH] signals: remove boost compatibility guards These were necessary to work around unnecessary constraints that have been fixed in the (upcoming) boost::signals2 version 1.91. Our implementation's constraints match those of that version. --- src/test/btcsignals_tests.cpp | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/test/btcsignals_tests.cpp b/src/test/btcsignals_tests.cpp index dd4f24f1829..b3203ebeb23 100644 --- a/src/test/btcsignals_tests.cpp +++ b/src/test/btcsignals_tests.cpp @@ -9,8 +9,6 @@ #include -#define BOOST_MINOR_VERSION ((BOOST_VERSION / 100) % 1000) - namespace { @@ -18,21 +16,9 @@ struct MoveOnlyData { MoveOnlyData(int data) : m_data(data) {} MoveOnlyData(MoveOnlyData&&) = default; -#if BOOST_MINOR_VERSION <= 85 - // Boost::signals2 <= 1.85 required copyable return types - MoveOnlyData(const MoveOnlyData&) = default; - MoveOnlyData& operator=(const MoveOnlyData&) = default; -#elif BOOST_MINOR_VERSION <= 90 - // Boost::signals2 <= 1.90 required move-assignable return types - MoveOnlyData& operator=(MoveOnlyData&&) = default; - MoveOnlyData(const MoveOnlyData&) = delete; - MoveOnlyData& operator=(const MoveOnlyData&) = delete; -#else - // Boost::signals2 >= 1.91 requires only move-constructible return types MoveOnlyData& operator=(MoveOnlyData&&) = delete; MoveOnlyData(const MoveOnlyData&) = delete; MoveOnlyData& operator=(const MoveOnlyData&) = delete; -#endif int m_data; };