From 93ef46bb2cad9083ccac86059e87e16c2cb5261b Mon Sep 17 00:00:00 2001 From: betachen Date: Mon, 15 May 2017 19:08:59 +0800 Subject: [PATCH] property_tree::read_json does not work https://svn.boost.org/trac/boost/ticket/12621 --- include/boost/property_tree/json_parser/detail/parser.hpp | 5 +++-- 1 file changed, 3 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 5554990fb..bf3c7a528 100644 --- a/include/boost/property_tree/json_parser/detail/parser.hpp +++ b/include/boost/property_tree/json_parser/detail/parser.hpp @@ -5,6 +5,7 @@ #include #include +#include #include #include @@ -214,7 +215,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), placeholders::_1), error_fn); } @@ -517,7 +518,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), placeholders::_1)); } Callbacks& callbacks;