VS2010+boost 1.44 - error in move.hpp

While compiling the project in VS2010 previously built without errors in VS2008 I am getting following error: c:\libraries\boost\boost_1_44_0\boost\interprocess\detail\move.hpp(342): error C2440: 'return' : cannot convert from 'boost::interprocess::file_mapping' to 'boost::interprocess::file_mapping &&' You cannot bind an lvalue to an rvalue reference c:\libraries\boost\boost_1_44_0\boost\interprocess\file_mapping.hpp (62) : see reference to function template instantiation 'boost::interprocess::file_mapping &&boost::interprocess::moveboost::interprocess::file_mapping&(T)' being compiled with [ T=boost::interprocess::file_mapping & ] I tried to search the forum for the reports on this error and did not find anything. I'll appreciate any help in this matter.

El 01/04/2011 0:56, archie14 escribió:
While compiling the project in VS2010 previously built without errors in VS2008 I am getting following error:
c:\libraries\boost\boost_1_44_0\boost\interprocess\detail\move.hpp(342): error C2440: 'return' : cannot convert from 'boost::interprocess::file_mapping' to 'boost::interprocess::file_mapping&&' You cannot bind an lvalue to an rvalue reference c:\libraries\boost\boost_1_44_0\boost\interprocess\file_mapping.hpp (62) : see reference to function template instantiation 'boost::interprocess::file_mapping &&boost::interprocess::moveboost::interprocess::file_mapping&(T)' being compiled with [ T=boost::interprocess::file_mapping& ]
I tried to search the forum for the reports on this error and did not find anything.
I'll appreciate any help in this matter.
Update your interprocess code. This bug should be solved now. Ion

El 02/04/2011 18:35, archie14 escribió:
Ion Gaztañaga
writes: Update your interprocess code. This bug should be solved now.
Ion
Thank you so much for the quick response! Should I update 1.44 to 1.46.1 or get move.hpp directly from the svn?
move.hpp is only needed for Boost 1.47. 1.46 should be fine. Best, Ion
participants (2)
-
archie14
-
Ion Gaztañaga