vs2010编译boost1.44中interprocess\detail\move.hpp的错误
来源:互联网 发布:畅捷通是什么软件 编辑:程序博客网 时间:2024/06/06 08:34
1>e:\code\company\sky_guide\open_common\cpplib\boost1_44\boost\interprocess\detail\move.hpp(342): error C2440: “return”: 无法从“boost::interprocess::shared_memory_object”转换为“boost::interprocess::shared_memory_object &&”
1> 无法将左值绑定到右值引用
1> e:\code\company\sky_guide\open_common\cpplib\boost1_44\boost\interprocess\shared_memory_object.hpp(85): 参见对正在编译的函数 模板 实例化“boost::interprocess::shared_memory_object &&boost::interprocess::move<boost::interprocess::shared_memory_object&>(T)”的引用
1> with
1> [
1> T=boost::interprocess::shared_memory_object &
1> ]
1>e:\code\company\sky_guide\open_common\cpplib\boost1_44\boost\interprocess\detail\move.hpp(342): error C2440: “return”: 无法从“boost::interprocess::mapped_region”转换为“boost::interprocess::mapped_region &&”
1> 无法将左值绑定到右值引用
1> e:\code\company\sky_guide\open_common\cpplib\boost1_44\boost\interprocess\mapped_region.hpp(159): 参见对正在编译的函数 模板 实例化“boost::interprocess::mapped_region &&boost::interprocess::move<boost::interprocess::mapped_region&>(T)”的引用
1> with
1> [
1> T=boost::interprocess::mapped_region &
1> ]
1>
1> 无法将左值绑定到右值引用
1> e:\code\company\sky_guide\open_common\cpplib\boost1_44\boost\interprocess\shared_memory_object.hpp(85): 参见对正在编译的函数 模板 实例化“boost::interprocess::shared_memory_object &&boost::interprocess::move<boost::interprocess::shared_memory_object&>(T)”的引用
1> with
1> [
1> T=boost::interprocess::shared_memory_object &
1> ]
1>e:\code\company\sky_guide\open_common\cpplib\boost1_44\boost\interprocess\detail\move.hpp(342): error C2440: “return”: 无法从“boost::interprocess::mapped_region”转换为“boost::interprocess::mapped_region &&”
1> 无法将左值绑定到右值引用
1> e:\code\company\sky_guide\open_common\cpplib\boost1_44\boost\interprocess\mapped_region.hpp(159): 参见对正在编译的函数 模板 实例化“boost::interprocess::mapped_region &&boost::interprocess::move<boost::interprocess::mapped_region&>(T)”的引用
1> with
1> [
1> T=boost::interprocess::mapped_region &
1> ]
1>
1>生成失败。
解决方法:
此错误可能是boost1.44在vs2010上一个语法不支持导致的bug,网上解决方案为更新inprocess库版本来解决,或者直接用1.46或1.47版本boost的move.hpp文件替换1.44的
- vs2010编译boost1.44中interprocess\detail\move.hpp的错误
- 机器学习之shark环境的编译(vs2010+boost1.5.5)
- boost1.56编译(windows+VS2010)
- Win10系统中使用VS2017编译Boost1.65的方法
- Win10系统中使用VS2017编译Boost1.65的方法
- boost1.50在VS2010下的配置
- 在 Windows 中编译 boost1.42.0
- 在 Windows 中编译 boost1.42.0
- boost1.43在win7下的编译
- vs2010安装boost1.50
- BOOST1.55+VS2010
- vs2010中debug没有错误而release编译错误 ---查找替换惹的祸
- VS2010 中常见的错误
- VS2013编译boost1.55.0 serialization库错误解决办法
- VS2010 _ITERATOR_DEBUG_LEVEL 不匹配的编译错误
- vs2010编译提示错误
- VS2010编译错误集合
- Vs2010编译错误集
- 正则表达式
- Intel安卓新利器:图形性能分析器
- strtok_r函数研究
- Linux中用Eclipse来开发C语言程序,交叉编译ARM嵌入式C语言
- 2012 电商淘汰进行时
- vs2010编译boost1.44中interprocess\detail\move.hpp的错误
- preg_match
- oracle 游标
- setsockopt 设置socket 详细用法
- 基于百度地图API实现的地图形式天气预报
- HowTo: Use grep Command In Linux / UNIX [ Examples ]
- ubuntu 登陆后又回到登录界面 因为配置sdk环境变量
- setsockopt应用
- 怎么查看端口占用情况?