出现错误error: ‘type name’ declared as function returning an array
解决方案:
1、更新gcc版本到5.3(具体步骤百度)
2、修改修改json_parser_read.hpp:
sudo gedit /usr/include/boost/property_tree/detail/json_parser_read.hpp
将257行开始的escape代码段注释掉即可,如下:
/*escape
= chset_p(detail::widen<Ch>("\"\\/bfnrt").c_str())
[typename Context::a_escape(self.c)]
| 'u' >> uint_parser<unsigned long, , , >()
[typename Context::a_unicode(self.c)]
;*/