From 1f52127735f53edf134d5b68c54fc06d945cf83f Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sun, 5 Jan 2003 12:12:39 +0000 Subject: [PATCH] Fixed macro usage [SVN r16752] --- include/boost/detail/allocator.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/include/boost/detail/allocator.hpp b/include/boost/detail/allocator.hpp index 033b370..278a2e5 100644 --- a/include/boost/detail/allocator.hpp +++ b/include/boost/detail/allocator.hpp @@ -49,7 +49,10 @@ void allocator_construct(T* p, const T& t) template void allocator_destroy(T* p) -{ p->~T(); } +{ + (void)p; // warning suppression + p->~T(); +} } } @@ -57,7 +60,7 @@ void allocator_destroy(T* p) #include -#define BOOST_DEFAULT_ALLOCATOR(T) std::allocator +#define BOOST_DEFAULT_ALLOCATOR(T) std::allocator< T > namespace boost{ namespace detail{ @@ -76,7 +79,7 @@ struct rebind_allocator // no std::allocator, but the compiler supports the necessary syntax, // write our own allocator instead: -#define BOOST_DEFAULT_ALLOCATOR(T) ::boost::detail::allocator +#define BOOST_DEFAULT_ALLOCATOR(T) ::boost::detail::allocator< T > namespace boost{ namespace detail{