diff options
Diffstat (limited to 'boost/poly_collection/detail/base_model.hpp')
-rw-r--r-- | boost/poly_collection/detail/base_model.hpp | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/boost/poly_collection/detail/base_model.hpp b/boost/poly_collection/detail/base_model.hpp index f6d44bb263..62c209f740 100644 --- a/boost/poly_collection/detail/base_model.hpp +++ b/boost/poly_collection/detail/base_model.hpp @@ -1,4 +1,4 @@ -/* Copyright 2016-2017 Joaquin M Lopez Munoz. +/* Copyright 2016-2018 Joaquin M Lopez Munoz. * Distributed under the Boost Software License, Version 1.0. * (See accompanying file LICENSE_1_0.txt or copy at * http://www.boost.org/LICENSE_1_0.txt) @@ -80,15 +80,11 @@ public: using iterator=Derived*; template<typename Derived> using const_iterator=const Derived*; - using segment_backend=detail::segment_backend<base_model>; + template<typename Allocator> + using segment_backend=detail::segment_backend<base_model,Allocator>; template<typename Derived,typename Allocator> - using segment_backend_implementation=packed_segment< - base_model, - Derived, - typename std::allocator_traits<Allocator>::template rebind_alloc<Derived> - >; - using segment_backend_unique_ptr= - typename segment_backend::segment_backend_unique_ptr; + using segment_backend_implementation= + packed_segment<base_model,Derived,Allocator>; static base_iterator nonconst_iterator(const_base_iterator it) { @@ -104,12 +100,6 @@ public: return const_cast<iterator<T>>(it); } - template<typename Derived,typename Allocator> - static segment_backend_unique_ptr make(const Allocator& al) - { - return segment_backend_implementation<Derived,Allocator>::new_(al,al); - } - private: template<typename,typename,typename> friend class packed_segment; |