Skip to content

Commit 84511fd

Browse files
committed
pycsdiff: eliminate a compile-time warning
In file included from /usr/include/boost/bind.hpp:30, from /usr/include/boost/python/exception_translator.hpp:10, from /usr/include/boost/python.hpp:28, from /home/kdudka/git/csdiff/src/pycsdiff.cc:27: /usr/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( | ^~~~~~~~~~~~~~~~~~~~
1 parent a06e219 commit 84511fd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/pycsdiff.cc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@
2323

2424
#include <sstream>
2525

26+
// eliminate the following warning:
27+
// /usr/include/boost/bind.hpp:36:1: note: ‘#pragma message: The practice
28+
// of declaring the Bind placeholders (_1, _2, ...) in the global namespace
29+
// is deprecated. Please use <boost/bind/bind.hpp> + using namespace
30+
// boost::placeholders, or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain
31+
// the current behavior.’
32+
#define BOOST_BIND_GLOBAL_PLACEHOLDERS
33+
2634
#include <boost/python.hpp>
2735

2836
std::string diff_scans(

0 commit comments

Comments
 (0)