[Boost-bugs] [Boost C++ Libraries] #5287: boost/interprocess/sync/file_lock.hpp on msvc 10 fails to compile

Subject: [Boost-bugs] [Boost C++ Libraries] #5287: boost/interprocess/sync/file_lock.hpp on msvc 10 fails to compile
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-10 05:15:18


#5287: boost/interprocess/sync/file_lock.hpp on msvc 10 fails to compile
-----------------------------------------------+----------------------------
 Reporter: ustramooner@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.44.0 | Severity: Problem
 Keywords: |
-----------------------------------------------+----------------------------
 Compiling this simple code fails on MS Vis Studio 10 64bit version.
 {{{
 #!div style="font-size: 80%"
   {{{#!c++
 #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.
 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5287>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC