当前位置: 代码迷 >> 综合 >> error:'replace_all' is not a member of 'boost'
  详细解决方案

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

热度:81   发布时间:2023-11-21 14:01:27.0

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

#include "boost/algorithm/string.hpp"

然后修改

boost::replace_all 为 boost::algorithm::replace_all 
  相关解决方案