Replace std::forward with detail::sp_forward.

[SVN r81399]
This commit is contained in:
Peter Dimov
2012-11-17 16:21:41 +00:00
parent cf769b94a7
commit 94b6487ca1
4 changed files with 46 additions and 13 deletions
@@ -14,6 +14,7 @@
#include <boost/config.hpp>
#include <boost/smart_ptr/shared_ptr.hpp>
#include <boost/smart_ptr/detail/sp_forward.hpp>
#include <boost/type_traits/type_with_alignment.hpp>
#include <boost/type_traits/alignment_of.hpp>
#include <cstddef>
@@ -97,15 +98,6 @@ public:
}
};
#if defined( BOOST_HAS_RVALUE_REFS )
template< class T > T&& sp_forward( T & t ) BOOST_NOEXCEPT
{
return static_cast< T&& >( t );
}
#endif
template< class T > struct sp_if_not_array
{
typedef boost::shared_ptr< T > type;