error:'replace_all' is not a member of 'boost'

报错如图:
在这里插入图片描述
解决办法:
在你报错的文件内包含头文件

#include "boost/algorithm/string.hpp"

然后修改

boost::replace_all 为 boost::algorithm::replace_all 
发布了53 篇原创文章 · 获赞 5 · 访问量 2224

猜你喜欢

转载自blog.csdn.net/qq_37668436/article/details/104619966