error C2440 - cannot convert from 'boost::interprocess::mapped_region' to 'boost::interprocess::mapped_region &&'

Issue:

今天在用boost 1.44时,在VS2010中遇到如下编译错误:

error C2440 : cannot convert from 'boost::interprocess::mapped_region' to 'boost::interprocess::mapped_region &&'

You cannot bind an lvalue to an rvalue reference

 

 

Solution:

在project property中定义宏 BOOST_NO_RVALUE_REFERENCES。

posted on 2012-09-11 23:15  name2579  阅读(373)  评论(0编辑  收藏  举报

导航