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