From 5c21b6a5251523453ef3d02cc7e44dbfb31275eb Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 13 Dec 2019 19:16:51 +0200 Subject: [PATCH] Add deprecation notice to boost/bind.hpp --- include/boost/bind.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/boost/bind.hpp b/include/boost/bind.hpp index 450120c..232f55b 100644 --- a/include/boost/bind.hpp +++ b/include/boost/bind.hpp @@ -7,7 +7,6 @@ # pragma once #endif -// // bind.hpp - binds function objects to arguments // // Copyright (c) 2009, 2015 Peter Dimov @@ -18,6 +17,15 @@ // // See http://www.boost.org/libs/bind/bind.html for documentation. // +// For backward compatibility, this header includes +// and then imports the placeholders _1, _2, +// _3, ... into the global namespace. Definitions in the global +// namespace are not a good practice and this use is deprecated. +// Please switch to including directly, +// adding the using directive locally where appropriate. + +#include +BOOST_HEADER_DEPRECATED( "" ) #include