mirror of
https://github.com/boostorg/detail.git
synced 2025-07-30 20:37:14 +02:00
More fixes resulting from the new config
[SVN r11182]
This commit is contained in:
@ -22,6 +22,18 @@ using ::size_t;
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
namespace boost{ namespace detail{
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
void allocator_construct(T* p, const T& t)
|
||||||
|
{ new (p) T(t); }
|
||||||
|
|
||||||
|
template <class T>
|
||||||
|
void allocator_destroy(T* p)
|
||||||
|
{ p->~T(); }
|
||||||
|
|
||||||
|
} }
|
||||||
|
|
||||||
#if !defined(BOOST_NO_STD_ALLOCATOR)
|
#if !defined(BOOST_NO_STD_ALLOCATOR)
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
@ -49,14 +61,6 @@ struct rebind_allocator
|
|||||||
|
|
||||||
namespace boost{ namespace detail{
|
namespace boost{ namespace detail{
|
||||||
|
|
||||||
template <class T>
|
|
||||||
void allocator_construct(T* p, const T& t)
|
|
||||||
{ new (p) T(t); }
|
|
||||||
|
|
||||||
template <class T>
|
|
||||||
void allocator_destroy(T* p)
|
|
||||||
{ p->~T(); }
|
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class allocator
|
class allocator
|
||||||
{
|
{
|
||||||
@ -137,14 +141,6 @@ struct rebind_allocator
|
|||||||
|
|
||||||
namespace boost{ namespace detail{
|
namespace boost{ namespace detail{
|
||||||
|
|
||||||
template <class T>
|
|
||||||
void allocator_construct(T* p, const T& t)
|
|
||||||
{ new (p) T(t); }
|
|
||||||
|
|
||||||
template <class T>
|
|
||||||
void allocator_destroy(T* p)
|
|
||||||
{ p->~T(); }
|
|
||||||
|
|
||||||
class simple_alloc
|
class simple_alloc
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Reference in New Issue
Block a user