mirror of
https://github.com/boostorg/container.git
synced 2025-08-03 14:34:27 +02:00
Fixed test error (allocator<void> might not have size_type) + modified changelog in documentation
[SVN r80522]
This commit is contained in:
@@ -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],
|
||||||
|
@@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user