]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
json_spirit: avoid using bind placeholders in global namespace 35787/head
authorKefu Chai <kchai@redhat.com>
Fri, 26 Jun 2020 14:26:40 +0000 (22:26 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 26 Jun 2020 14:43:03 +0000 (22:43 +0800)
commit66bf260267765bcb2829c772f3bc9cb7ef31abeb
tree4e8ddbc3011d5a15ff6bc29db19592493bf02f09
parenteb5344a5d95671511becbb9b8837f72a61b1118e
json_spirit: avoid using bind placeholders in global namespace

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>
src/json_spirit/json_spirit_reader_template.h