Modify

Opened 6 years ago

Closed 6 years ago

#5287 closed Bugs (fixed)

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

Reported by: ustramooner@… Owned by: igaztanaga
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 6 years ago by igaztanaga

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in Boost 1.47

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain igaztanaga.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.