diff --git a/test/helpers/invariants.hpp b/test/helpers/invariants.hpp index 65d13fb7..91d5b2d6 100644 --- a/test/helpers/invariants.hpp +++ b/test/helpers/invariants.hpp @@ -21,7 +21,9 @@ namespace test { typename X::key_equal eq = x1.key_eq(); typedef typename X::key_type key_type; - std::set found_; + // Boost.Test was reporting memory leaks for std::set on g++-3.3. + // So I work around it by using malloc. + std::set, test::exception::detail::malloc_allocator > found_; typename X::const_iterator it = x1.begin(), end = x1.end(); typename X::size_type size = 0;