From 695b3059bd75e9637939ed560b8553fb9aba5439 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Fri, 21 Sep 2001 11:35:54 +0000 Subject: [PATCH] More fixes resulting from the new config [SVN r11182] --- include/boost/detail/allocator.hpp | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/include/boost/detail/allocator.hpp b/include/boost/detail/allocator.hpp index 594306d..7e8cc79 100644 --- a/include/boost/detail/allocator.hpp +++ b/include/boost/detail/allocator.hpp @@ -22,6 +22,18 @@ using ::size_t; } #endif +namespace boost{ namespace detail{ + +template +void allocator_construct(T* p, const T& t) +{ new (p) T(t); } + +template +void allocator_destroy(T* p) +{ p->~T(); } + +} } + #if !defined(BOOST_NO_STD_ALLOCATOR) #include @@ -49,14 +61,6 @@ struct rebind_allocator namespace boost{ namespace detail{ -template -void allocator_construct(T* p, const T& t) -{ new (p) T(t); } - -template -void allocator_destroy(T* p) -{ p->~T(); } - template class allocator { @@ -137,14 +141,6 @@ struct rebind_allocator namespace boost{ namespace detail{ -template -void allocator_construct(T* p, const T& t) -{ new (p) T(t); } - -template -void allocator_destroy(T* p) -{ p->~T(); } - class simple_alloc { public: