From 49277d8ecb5ed8bb72838e3e4f75ac08ced75207 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 30 Dec 2025 21:32:14 +0100 Subject: [PATCH] Fix Boost bind deprecation warning MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Original warning: boost/bind.hpp:36:1: note: ‘#pragma message: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated. Please use + using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’ Use with boost::placeholders for Boost 1.46+. Fall back to for Boost 1.44 (no deprecation warning in that version). --- configlib/i2n_global_config.hpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configlib/i2n_global_config.hpp b/configlib/i2n_global_config.hpp index f61d099..a1bfaa8 100644 --- a/configlib/i2n_global_config.hpp +++ b/configlib/i2n_global_config.hpp @@ -54,7 +54,12 @@ on this file might be covered by the GNU General Public License. #include #include #include +#if BOOST_VERSION >= 104600 +#include +using namespace boost::placeholders; +#else #include +#endif #include -- 1.7.1