diff --git a/doc/container.qbk b/doc/container.qbk index 0c760e0..60ef8c2 100644 --- a/doc/container.qbk +++ b/doc/container.qbk @@ -616,6 +616,8 @@ use [*Boost.Container]? There are several reasons for that: [section:release_notes_boost_1_52_00 Boost 1.52 Release] +* Improved `stable_vector`'s template code bloat and type safety. + * Fixed bugs [@https://svn.boost.org/trac/boost/ticket/6615 #6615], [@https://svn.boost.org/trac/boost/ticket/7139 #7139], diff --git a/test/scoped_allocator_usage_test.cpp b/test/scoped_allocator_usage_test.cpp index bb841a2..c0a4827 100644 --- a/test/scoped_allocator_usage_test.cpp +++ b/test/scoped_allocator_usage_test.cpp @@ -20,8 +20,6 @@ class SimpleAllocator { public: typedef Ty value_type; - typedef typename std::allocator::pointer pointer; - typedef typename std::allocator::size_type size_type; SimpleAllocator(int value) : m_state(value) @@ -32,12 +30,12 @@ public: : m_state(other.m_state) {} - pointer allocate(size_type n) + Ty* allocate(std::size_t n) { return m_allocator.allocate(n); } - void deallocate(pointer p, size_type n) + void deallocate(Ty* p, std::size_t n) { m_allocator.deallocate(p, n); }