Add forceinline to trivial cases

This commit is contained in:
Ion Gaztañaga
2019-03-30 12:32:39 +01:00
parent ba02f27989
commit 7efea237e1
2 changed files with 3 additions and 3 deletions

View File

@@ -167,7 +167,7 @@ class deque_iterator
: m_cur(x.get_cur()), m_first(x.get_first()), m_last(x.get_last()), m_node(x.get_node())
{}
deque_iterator(Pointer cur, Pointer first, Pointer last, index_pointer node) BOOST_NOEXCEPT_OR_NOTHROW
BOOST_CONTAINER_FORCEINLINE deque_iterator(Pointer cur, Pointer first, Pointer last, index_pointer node) BOOST_NOEXCEPT_OR_NOTHROW
: m_cur(cur), m_first(first), m_last(last), m_node(node)
{}

View File

@@ -69,11 +69,11 @@ struct select1st
typedef FirstType type;
template<class T>
const type& operator()(const T& x) const
BOOST_CONTAINER_FORCEINLINE const type& operator()(const T& x) const
{ return x.first; }
template<class T>
type& operator()(T& x)
BOOST_CONTAINER_FORCEINLINE type& operator()(T& x)
{ return const_cast<type&>(x.first); }
};