您的位置:首页 > 其它

error: use of deleted function boost::shared_ptr 问题解决

2016-07-03 15:03 627 查看

问题描述

编译 muduo网络库(1.0.8 版本)时出现错误: error: use of deleted function ‘boost::shared_ptr<muduo::TimeZone::Data>::shared_ptr(const boost::shared_ptr<muduo::TimeZone::Data>&)’  this_type(r).swap(*this);

背景

使用的 g++ 版本:g++ (Ubuntu 4.8.1-2ubuntu1~12.04) 4.8.1

使用的 boost 版本:libboost1.46-dev

Linux 系统:Ubuntu 12.04.5 LTS

产生原因

安装的 boost 版本与安装的 g++ 版本不匹配

问题解决

将 boost1.46 更新至最新版。见http://blog.csdn.net/wohenfanjian/article/details/51815133
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息