Add more BOOST_MOVE_FORCEINLINE

This commit is contained in:
Ion Gaztañaga
2020-06-03 00:19:06 +02:00
parent 42ee986e17
commit fa3aa147b4
2 changed files with 4 additions and 4 deletions

View File

@@ -27,11 +27,11 @@ namespace movelib {
namespace detail { namespace detail {
template <class T> template <class T>
inline T* iterator_to_pointer(T* i) BOOST_MOVE_FORCEINLINE T* iterator_to_pointer(T* i)
{ return i; } { return i; }
template <class Iterator> template <class Iterator>
inline typename boost::movelib::iterator_traits<Iterator>::pointer BOOST_MOVE_FORCEINLINE typename boost::movelib::iterator_traits<Iterator>::pointer
iterator_to_pointer(const Iterator &i) iterator_to_pointer(const Iterator &i)
{ return i.operator->(); } { return i.operator->(); }
@@ -46,7 +46,7 @@ struct iterator_to_element_ptr
} //namespace detail { } //namespace detail {
template <class Iterator> template <class Iterator>
inline typename boost::movelib::detail::iterator_to_element_ptr<Iterator>::type BOOST_MOVE_FORCEINLINE typename boost::movelib::detail::iterator_to_element_ptr<Iterator>::type
iterator_to_raw_pointer(const Iterator &i) iterator_to_raw_pointer(const Iterator &i)
{ {
return ::boost::movelib::to_raw_pointer return ::boost::movelib::to_raw_pointer

View File

@@ -170,7 +170,7 @@ struct is_move_iterator< ::boost::move_iterator<I> >
//! //!
//! <b>Returns</b>: move_iterator<It>(i). //! <b>Returns</b>: move_iterator<It>(i).
template<class It> template<class It>
inline move_iterator<It> make_move_iterator(const It &it) BOOST_MOVE_FORCEINLINE move_iterator<It> make_move_iterator(const It &it)
{ return move_iterator<It>(it); } { return move_iterator<It>(it); }
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////