From 4cb682aa9ed270f890b73a2450decab777c777d0 Mon Sep 17 00:00:00 2001
From: Axel Huebl <axel.huebl@plasma.ninja>
Date: Wed, 15 Feb 2017 23:56:24 +0100
Subject: [PATCH] JSON Parser: Missing Bind Placeholders
Fixes missing placeholder includes to `boost::bind`.
```
boost/property_tree/json_parser/detail/parser.hpp(217): error: identifier "_1" is undefined
boost/property_tree/json_parser/detail/parser.hpp(520): error: identifier "_1" is undefined
```
Reported in
https://svn.boost.org/trac/boost/ticket/12841
---
include/boost/property_tree/json_parser/detail/parser.hpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 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..c2edffc 100644
a
|
b
|
|
6 | 6 | #include <boost/ref.hpp> |
7 | 7 | #include <boost/bind.hpp> |
8 | 8 | #include <boost/format.hpp> |
| 9 | #include <boost/bind.hpp> |
| 10 | #include <boost/bind/placeholders.hpp> |
9 | 11 | |
10 | 12 | #include <iterator> |
11 | 13 | #include <sstream> |
… |
… |
namespace boost { namespace property_tree {
|
214 | 216 | void process_codepoint(Sentinel end, EncodingErrorFn error_fn) { |
215 | 217 | encoding.transcode_codepoint(cur, end, |
216 | 218 | boost::bind(&Callbacks::on_code_unit, |
217 | | boost::ref(callbacks), _1), |
| 219 | boost::ref(callbacks), |
| 220 | boost::placeholders::_1), |
218 | 221 | error_fn); |
219 | 222 | } |
220 | 223 | |
… |
… |
namespace boost { namespace property_tree {
|
517 | 520 | void feed(unsigned codepoint) { |
518 | 521 | encoding.feed_codepoint(codepoint, |
519 | 522 | boost::bind(&Callbacks::on_code_unit, |
520 | | boost::ref(callbacks), _1)); |
| 523 | boost::ref(callbacks), |
| 524 | boost::placeholders::_1)); |
521 | 525 | } |
522 | 526 | |
523 | 527 | Callbacks& callbacks; |