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;