vs2010使用boost::interpocess编译出错
2010-10-15 20:17
429 查看
需要修改
对return t;做一个强制转换
#if defined(BOOST_MOVE_DOXYGEN_INVOKED) //! This function provides a way to convert a reference into a rvalue reference //! in compilers with rvalue reference. For other compilers converts T & into //! <i>::boost::interprocess::rv<T> &</i> so that move emulation is activated. template <class T> inline rvalue_reference move (input_reference); #else //template <class T> inline //typename remove_reference<T>::type&& move(T&& t) //{ return t; } template <class T> inline typename remove_reference<T>::type&& move(T&& t) { return t; } #endif
对return t;做一个强制转换
#if defined(BOOST_MOVE_DOXYGEN_INVOKED) //! This function provides a way to convert a reference into a rvalue reference //! in compilers with rvalue reference. For other compilers converts T & into //! <i>::boost::interprocess::rv<T> &</i> so that move emulation is activated. template <class T> inline rvalue_reference move (input_reference); #else //template <class T> inline //typename remove_reference<T>::type&& move(T&& t) //{ return t; } template <class T> inline typename remove_reference<T>::type&& move(T&& t) { return static_cast<remove_reference<T>::type&&>(t); } #endif
相关文章推荐
- vs2010使用boost::interpocess编译出错
- windows下vs2010 编译、使用boost
- VS2010 + STLport + Boost 的编译使用
- win7 64位环境下VS2010编译使用boost_1_62_0
- 使用VS2010编译Boost及thrift0.9.2
- 编译供VS2010使用的boost
- VS2010编译使用STLport与boost
- Boost安装(即编译)并在VS2010中配置使用
- boost库使用:vs2013下boost::container::vector编译出错解决
- VS2010编译使用Boost 1.64.0
- VS2010下使用STLport编译boost时遇到的一些问题
- VS2010编译并使用Boost 1.57
- Linux 下编译使用Boost
- VS2010下编译boost
- boost 1.57在VC2012里编译出错以及解决
- Boost下载安装编译配置使用指南(含Windows和Linux)
- 开源库Simd在vs2010中的编译及简单使用
- vs2010使用命令行编译的方法
- 使用Crypto++库编译出错 解决办法
- Linux系统下面使用pthread.h库时g++编译出错