diff --git a/include/boost/container/detail/flat_tree.hpp b/include/boost/container/detail/flat_tree.hpp index 81c1802..f5710c5 100644 --- a/include/boost/container/detail/flat_tree.hpp +++ b/include/boost/container/detail/flat_tree.hpp @@ -386,7 +386,7 @@ class flat_tree aligned_storage::value> v; value_type &val = *static_cast(static_cast(&v)); stored_allocator_type &a = this->get_stored_allocator(); - stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); + stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); scoped_destructor d(a, &val); insert_commit_data data; std::pair ret = @@ -404,7 +404,7 @@ class flat_tree aligned_storage::value> v; value_type &val = *static_cast(static_cast(&v)); stored_allocator_type &a = this->get_stored_allocator(); - stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); + stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); scoped_destructor d(a, &val); insert_commit_data data; std::pair ret = priv_insert_unique_prepare(hint, val, data); @@ -421,7 +421,7 @@ class flat_tree aligned_storage::value> v; value_type &val = *static_cast(static_cast(&v)); stored_allocator_type &a = this->get_stored_allocator(); - stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); + stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); scoped_destructor d(a, &val); iterator i = this->upper_bound(KeyOfValue()(val)); i = this->m_data.m_vect.insert(i, boost::move(val)); @@ -435,7 +435,7 @@ class flat_tree aligned_storage::value> v; value_type &val = *static_cast(static_cast(&v)); stored_allocator_type &a = this->get_stored_allocator(); - stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); + stored_allocator_traits::construct(a, &val, ::boost::forward(args)... ); scoped_destructor d(a, &val); insert_commit_data data; this->priv_insert_equal_prepare(hint, val, data); diff --git a/include/boost/container/scoped_allocator.hpp b/include/boost/container/scoped_allocator.hpp index 770158a..e2f72c6 100644 --- a/include/boost/container/scoped_allocator.hpp +++ b/include/boost/container/scoped_allocator.hpp @@ -646,24 +646,24 @@ class scoped_allocator_adaptor_base template scoped_allocator_adaptor_base(BOOST_FWD_REF(OuterA2) outerAlloc, const InnerAllocs &...args) : outer_allocator_type(::boost::forward(outerAlloc)) - , inner(args...) + , m_inner(args...) {} scoped_allocator_adaptor_base(const scoped_allocator_adaptor_base& other) : outer_allocator_type(other.outer_allocator()) - , inner(other.inner_allocator()) + , m_inner(other.inner_allocator()) {} scoped_allocator_adaptor_base(BOOST_RV_REF(scoped_allocator_adaptor_base) other) : outer_allocator_type(::boost::move(other.outer_allocator())) - , inner(::boost::move(other.inner_allocator())) + , m_inner(::boost::move(other.inner_allocator())) {} template scoped_allocator_adaptor_base (const scoped_allocator_adaptor_base& other) : outer_allocator_type(other.outer_allocator()) - , inner(other.inner_allocator()) + , m_inner(other.inner_allocator()) {} template @@ -671,7 +671,7 @@ class scoped_allocator_adaptor_base (BOOST_RV_REF_BEG scoped_allocator_adaptor_base BOOST_RV_REF_END other) : outer_allocator_type(other.outer_allocator()) - , inner(other.inner_allocator()) + , m_inner(other.inner_allocator()) {} protected: @@ -692,22 +692,22 @@ class scoped_allocator_adaptor_base (BOOST_COPY_ASSIGN_REF(scoped_allocator_adaptor_base) other) { outer_allocator_type::operator=(other.outer_allocator()); - inner = other.inner_allocator(); + m_inner = other.inner_allocator(); return *this; } scoped_allocator_adaptor_base &operator=(BOOST_RV_REF(scoped_allocator_adaptor_base) other) { outer_allocator_type::operator=(boost::move(other.outer_allocator())); - inner = ::boost::move(other.inner_allocator()); + m_inner = ::boost::move(other.inner_allocator()); return *this; } inner_allocator_type& inner_allocator() - { return inner; } + { return m_inner; } inner_allocator_type const& inner_allocator() const - { return inner; } + { return m_inner; } outer_allocator_type & outer_allocator() { return static_cast(*this); } @@ -716,7 +716,7 @@ class scoped_allocator_adaptor_base { return static_cast(*this); } private: - inner_allocator_type inner; + inner_allocator_type m_inner; }; #else //#if !defined(BOOST_NO_VARIADIC_TEMPLATES) @@ -1060,6 +1060,7 @@ class scoped_allocator_adaptor , true BOOST_PP_ENUM_TRAILING_PARAMS(BOOST_CONTAINER_MAX_CONSTRUCTOR_PARAMETERS, Q) #endif > base_type; + typedef typename base_type::internal_type_t internal_type_t; /// @endcond typedef OuterAlloc outer_allocator_type; //! Type: For exposition only