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。

你可能感兴趣的:(process)