From 7efea237e1c6cad854116261d1610f4459297476 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Sat, 30 Mar 2019 12:32:39 +0100 Subject: [PATCH] Add forceinline to trivial cases --- include/boost/container/deque.hpp | 2 +- include/boost/container/detail/mpl.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/container/deque.hpp b/include/boost/container/deque.hpp index 1fa3e5d..159292b 100644 --- a/include/boost/container/deque.hpp +++ b/include/boost/container/deque.hpp @@ -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) {} diff --git a/include/boost/container/detail/mpl.hpp b/include/boost/container/detail/mpl.hpp index 4706c58..ffae180 100644 --- a/include/boost/container/detail/mpl.hpp +++ b/include/boost/container/detail/mpl.hpp @@ -69,11 +69,11 @@ struct select1st typedef FirstType type; template - const type& operator()(const T& x) const + BOOST_CONTAINER_FORCEINLINE const type& operator()(const T& x) const { return x.first; } template - type& operator()(T& x) + BOOST_CONTAINER_FORCEINLINE type& operator()(T& x) { return const_cast(x.first); } };