|
Boost-Commit : |
From: danieljames_at_[hidden]
Date: 2007-07-01 07:16:58
Author: danieljames
Date: 2007-07-01 07:16:57 EDT (Sun, 01 Jul 2007)
New Revision: 7331
URL: http://svn.boost.org/trac/boost/changeset/7331
Log:
Avoid memory leak error for std::set on g++-3.3
Text files modified:
sandbox/unordered/libs/unordered/test/helpers/invariants.hpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
Modified: sandbox/unordered/libs/unordered/test/helpers/invariants.hpp
==============================================================================
--- sandbox/unordered/libs/unordered/test/helpers/invariants.hpp (original)
+++ sandbox/unordered/libs/unordered/test/helpers/invariants.hpp 2007-07-01 07:16:57 EDT (Sun, 01 Jul 2007)
@@ -21,7 +21,9 @@
{
typename X::key_equal eq = x1.key_eq();
typedef typename X::key_type key_type;
- std::set<key_type> found_;
+ // Boost.Test was reporting memory leaks for std::set on g++-3.3.
+ // So I work around it by using malloc.
+ std::set<key_type, std::less<key_type>, test::exception::detail::malloc_allocator<key_type> > found_;
typename X::const_iterator it = x1.begin(), end = x1.end();
typename X::size_type size = 0;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk