From: Thomas Jarosch Date: Tue, 30 Dec 2025 20:32:14 +0000 (+0100) Subject: Fix Boost bind deprecation warning X-Git-Tag: v2.13~2^2~2 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=49277d8ecb5ed8bb72838e3e4f75ac08ced75207;p=libi2ncommon Fix Boost bind deprecation warning 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). --- 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