Modify

Ticket #5287 (closed Bugs: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Change History

comment:1 Changed 3 years ago by igaztanaga

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

Fixed in Boost 1.47

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
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.