Modify

Opened 7 years ago

Closed 7 years ago

#5287 closed Bugs (fixed)

boost/interprocess/sync/file_lock.hpp on msvc 10 fails to compile

Reported by: ustramooner@… 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.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Ion Gaztañaga

Resolution: fixed
Status: newclosed

Fixed in Boost 1.47

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ion Gaztañaga.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.