1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
From d1c8825a45a0717e1ad79583d3283b0e5e32831e Mon Sep 17 00:00:00 2001
From: Andrey Semashev <Lastique@users.noreply.github.com>
Date: Tue, 28 Apr 2020 22:03:04 +0300
Subject: [PATCH] Fix usage of deprecated Boost.Bind features
This fixes deprecation warnings generated by boost/bind.hpp.
Also, use a more actual include path for ref.hpp.
---
include/boost/property_tree/json_parser/detail/parser.hpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/boost/property_tree/json_parser/detail/parser.hpp b/include/boost/property_tree/json_parser/detail/parser.hpp
index 5554990..6cf6363 100644
--- a/include/boost/property_tree/json_parser/detail/parser.hpp
+++ b/include/boost/property_tree/json_parser/detail/parser.hpp
@@ -3,8 +3,8 @@
#include <boost/property_tree/json_parser/error.hpp>
-#include <boost/ref.hpp>
-#include <boost/bind.hpp>
+#include <boost/core/ref.hpp>
+#include <boost/bind/bind.hpp>
#include <boost/format.hpp>
#include <iterator>
@@ -214,7 +214,7 @@ namespace boost { namespace property_tree {
void process_codepoint(Sentinel end, EncodingErrorFn error_fn) {
encoding.transcode_codepoint(cur, end,
boost::bind(&Callbacks::on_code_unit,
- boost::ref(callbacks), _1),
+ boost::ref(callbacks), boost::placeholders::_1),
error_fn);
}
@@ -517,7 +517,7 @@ namespace boost { namespace property_tree {
void feed(unsigned codepoint) {
encoding.feed_codepoint(codepoint,
boost::bind(&Callbacks::on_code_unit,
- boost::ref(callbacks), _1));
+ boost::ref(callbacks), boost::placeholders::_1));
}
Callbacks& callbacks;
--
2.29.2
|