Re: [Boost-bugs] [Boost C++ Libraries] #8092: stdlibc++ shipped by Apple does not provide std::move

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #8092: stdlibc++ shipped by Apple does not provide std::move
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-03-04 18:46:10


#8092: stdlibc++ shipped by Apple does not provide std::move
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: johnmaddock
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: config
   Version: Boost 1.53.0 | Severity: Showstopper
Resolution: | Keywords: xcode,osx,clang
-------------------------------+--------------------------------------------

Comment (by michel):

 Do we really need to detect the clang and libstdc++-4.2 configuration?

 What's the problem of always using Boost versions of `move`/`forward`
 {{{
 template <typename T>
 inline T&&
 forward(typename boost::remove_reference<T>::type& t) BOOST_NOEXCEPT
 {
     return static_cast<T&&>(t);
 }

 template <typename T>
 inline T&&
 forward(typename boost::remove_reference<T>::type&& t) BOOST_NOEXCEPT
 {
     BOOST_STATIC_ASSERT(!boost::is_lvalue_reference<T>::value);
     return static_cast<T&&>(t);
 }

 template <typename T>
 inline typename boost::remove_reference<T>::type&&
 move(T&& t) BOOST_NOEXCEPT
 {
     return static_cast<typename boost::remove_reference<T>::type&&>(t);
 }
 }}}
 ?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8092#comment:11>
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:12 UTC