Fixed test error (allocator<void> might not have size_type) + modified changelog in documentation

[SVN r80522]
This commit is contained in:
Ion Gaztañaga
2012-09-13 22:07:37 +00:00
parent 1582b2086d
commit de1caeb5d0
2 changed files with 4 additions and 4 deletions

View File

@@ -616,6 +616,8 @@ use [*Boost.Container]? There are several reasons for that:
[section:release_notes_boost_1_52_00 Boost 1.52 Release] [section:release_notes_boost_1_52_00 Boost 1.52 Release]
* Improved `stable_vector`'s template code bloat and type safety.
* Fixed bugs * Fixed bugs
[@https://svn.boost.org/trac/boost/ticket/6615 #6615], [@https://svn.boost.org/trac/boost/ticket/6615 #6615],
[@https://svn.boost.org/trac/boost/ticket/7139 #7139], [@https://svn.boost.org/trac/boost/ticket/7139 #7139],

View File

@@ -20,8 +20,6 @@ class SimpleAllocator
{ {
public: public:
typedef Ty value_type; typedef Ty value_type;
typedef typename std::allocator<Ty>::pointer pointer;
typedef typename std::allocator<Ty>::size_type size_type;
SimpleAllocator(int value) SimpleAllocator(int value)
: m_state(value) : m_state(value)
@@ -32,12 +30,12 @@ public:
: m_state(other.m_state) : m_state(other.m_state)
{} {}
pointer allocate(size_type n) Ty* allocate(std::size_t n)
{ {
return m_allocator.allocate(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); m_allocator.deallocate(p, n);
} }