问题
使用yaml-cppsv0.5的头文件时,报:
yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h:48:54: error: ‘next’ is not a member of ‘boost’
解决
比较新的boost包中可能出现找不到迭代器next方法,在yaml-cpp-yaml-cpp-0.5.3/include/yaml-cpp/node/detail/iterator.h
头文件中添加#include <boost/next_prior.hpp>
即可。