Opened 12 years ago
Closed 12 years ago
#5287 closed Bugs (fixed)
boost/interprocess/sync/file_lock.hpp on msvc 10 fails to compile
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | interprocess |
Version: | Boost 1.44.0 | Severity: | Problem |
Keywords: | Cc: |
Description
Compiling this simple code fails on MS Vis Studio 10 64bit version.
#include <boost/interprocess/sync/file_lock.hpp> int main() { return 0; }
The exception is:
1> test1.cpp 1>c:\program files (x86)\boost\boost_1_44\boost\interprocess\detail\move.hpp(342): error C2440: 'return' : cannot convert from 'boost::interprocess::file_lock' to 'boost::interprocess::file_lock &&' 1> You cannot bind an lvalue to an rvalue reference 1> c:\program files (x86)\boost\boost_1_44\boost\interprocess\sync\file_lock.hpp(68) : see reference to function template instantiation 'boost::interprocess::file_lock &&boost::interprocess::move<boost::interprocess::file_lock&>(T)' being compiled 1> with 1> [ 1> T=boost::interprocess::file_lock & 1> ] 1> 1>Build FAILED.
Note:
See TracTickets
for help on using tickets.
Fixed in Boost 1.47