to silence the warning from boost v1.73, like
json_spirit/json_spirit_reader.cpp:7:
/opt/ceph/include/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 <boost/bind/bind.hpp> +
using namespace boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior.’
36 | BOOST_PRAGMA_MESSAGE(
| ^~~~~~~~~~~~~~~~~~~~
Signed-off-by: Kefu Chai <kchai@redhat.com>
\r
#define BOOST_SPIRIT_THREADSAFE // uncomment for multithreaded use, requires linking to boost.thread\r
\r
-#include <boost/bind.hpp>\r
+#include <boost/bind/bind.hpp>\r
#include <boost/function.hpp>\r
#include <boost/version.hpp>\r
\r
return get_str( tmp.begin(), tmp.end() );\r
}\r
\r
+ using namespace boost::placeholders;\r
+\r
// this class's methods get called by the spirit parse resulting\r
// in the creation of a JSON object or array\r
//\r