Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4426: invalid init of reference with gcc 4.5, 4.6 with -std=c++0x
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-07-21 08:55:27
#4426: invalid init of reference with gcc 4.5, 4.6 with -std=c++0x
------------------------------+---------------------------------------------
Reporter: itsme@⦠| Owner: igaztanaga
Type: Bugs | Status: new
Milestone: Boost 1.44.0 | Component: interprocess
Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords:
------------------------------+---------------------------------------------
Comment (by itsme@â¦):
see [62717]
this is the patch to make ipc build with gcc4.5
{{{
Index: boost/interprocess/detail/move.hpp
===================================================================
--- boost/interprocess/detail/move.hpp (revision 64212)
+++ boost/interprocess/detail/move.hpp (working copy)
@@ -355,7 +355,7 @@
#else
template <class T> inline
typename remove_reference<T>::type&& move(T&& t)
-{ return t; }
+{ return static_cast<typename remove_reference<T>::type&&>(t); }
#endif
//////////////////////////////////////////////////////////////////////////////
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/4426#comment:1> 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:03 UTC