diff --git a/include/boost/move/move.hpp b/include/boost/move/move.hpp index 4a0f158..284c58e 100644 --- a/include/boost/move/move.hpp +++ b/include/boost/move/move.hpp @@ -182,7 +182,8 @@ { return v; } }; - template T * addressof( T & v ) + template + inline T * addressof( T & v ) { return ::boost::move_detail::addressof_impl::f ( ::boost::move_detail::addr_impl_ref( v ), 0 ); @@ -299,19 +300,19 @@ ////////////////////////////////////////////////////////////////////////////// template - typename BOOST_MOVE_BOOST_NS::disable_if, T&>::type move(T& x) + inline typename BOOST_MOVE_BOOST_NS::disable_if, T&>::type move(T& x) { return x; } template - typename BOOST_MOVE_BOOST_NS::enable_if, rv&>::type move(T& x) + inline typename BOOST_MOVE_BOOST_NS::enable_if, rv&>::type move(T& x) { return *static_cast* >(BOOST_MOVE_BOOST_NS::addressof(x)); } template - typename BOOST_MOVE_BOOST_NS::enable_if, rv&>::type move(rv& x) + inline typename BOOST_MOVE_BOOST_NS::enable_if, rv&>::type move(rv& x) { return x; } @@ -356,14 +357,14 @@ ////////////////////////////////////////////////////////////////////////////// template - typename BOOST_MOVE_BOOST_NS::enable_if< ::boost::move_detail::is_rv, T &>::type + inline typename BOOST_MOVE_BOOST_NS::enable_if< ::boost::move_detail::is_rv, T &>::type forward(const typename BOOST_MOVE_MPL_NS::identity::type &x) { return const_cast(x); } template - typename BOOST_MOVE_BOOST_NS::disable_if< ::boost::move_detail::is_rv, const T &>::type + inline typename BOOST_MOVE_BOOST_NS::disable_if< ::boost::move_detail::is_rv, const T &>::type forward(const typename BOOST_MOVE_MPL_NS::identity::type &x) { return x; @@ -462,13 +463,13 @@ //Old move approach, lvalues could bind to rvalue references template inline - typename remove_reference::type && move(T&& t) + inline typename remove_reference::type && move(T&& t) { return t; } #else //Old move template inline - typename remove_reference::type && move(T&& t) + inline typename remove_reference::type && move(T&& t) { return static_cast::type &&>(t); } #endif //Old move @@ -498,7 +499,7 @@ //Old move approach, lvalues could bind to rvalue references template inline - T&& forward (typename BOOST_MOVE_MPL_NS::identity::type&& t) + inline T&& forward (typename BOOST_MOVE_MPL_NS::identity::type&& t) { return t; } #else //Old move @@ -735,7 +736,7 @@ struct is_move_iterator< ::boost::move_iterator > //! //! Returns: move_iterator(i). template -move_iterator make_move_iterator(const It &it) +inline move_iterator make_move_iterator(const It &it) { return move_iterator(it); } ////////////////////////////////////////////////////////////////////////////// @@ -959,7 +960,7 @@ namespace move_detail { template // F models ForwardIterator -F uninitialized_move_move_iterator(I f, I l, F r +inline F uninitialized_move_move_iterator(I f, I l, F r // ,typename BOOST_MOVE_BOOST_NS::enable_if< has_move_emulation_enabled >::type* = 0 ) { @@ -980,7 +981,7 @@ F uninitialized_move_move_iterator(I f, I l, F r, template // F models ForwardIterator -F uninitialized_copy_or_move(I f, I l, F r, +inline F uninitialized_copy_or_move(I f, I l, F r, typename BOOST_MOVE_BOOST_NS::enable_if< move_detail::is_move_iterator >::type* = 0) { return ::boost::move_detail::uninitialized_move_move_iterator(f, l, r); @@ -997,7 +998,7 @@ namespace move_detail { template // F models ForwardIterator -F move_move_iterator(I f, I l, F r +inline F move_move_iterator(I f, I l, F r // ,typename BOOST_MOVE_BOOST_NS::enable_if< has_move_emulation_enabled >::type* = 0 ) { @@ -1019,7 +1020,7 @@ F move_move_iterator(I f, I l, F r, template // F models ForwardIterator -F copy_or_move(I f, I l, F r, +inline F copy_or_move(I f, I l, F r, typename BOOST_MOVE_BOOST_NS::enable_if< move_detail::is_move_iterator >::type* = 0) { return ::boost::move_detail::move_move_iterator(f, l, r); @@ -1042,7 +1043,7 @@ F copy_or_move(I f, I l, F r, template // F models ForwardIterator -F uninitialized_copy_or_move(I f, I l, F r +inline F uninitialized_copy_or_move(I f, I l, F r /// @cond ,typename BOOST_MOVE_BOOST_NS::disable_if< move_detail::is_move_iterator >::type* = 0 /// @endcond @@ -1065,7 +1066,7 @@ F uninitialized_copy_or_move(I f, I l, F r template // F models ForwardIterator -F copy_or_move(I f, I l, F r +inline F copy_or_move(I f, I l, F r /// @cond ,typename BOOST_MOVE_BOOST_NS::disable_if< move_detail::is_move_iterator >::type* = 0 /// @endcond