diff --git a/test/objects/test.hpp b/test/objects/test.hpp index 8ea6d2de..8659eae6 100644 --- a/test/objects/test.hpp +++ b/test/objects/test.hpp @@ -354,7 +354,12 @@ namespace test { typedef allocator1 other; }; - explicit allocator1(int t = 0) : tag_(t) + allocator1() : tag_(0) + { + detail::tracker.allocator_ref(); + } + + explicit allocator1(int t) : tag_(t) { detail::tracker.allocator_ref(); } @@ -601,7 +606,12 @@ namespace test { typedef allocator2 other; }; - explicit allocator2(int t = 0) : tag_(t) + allocator2() : tag_(0) + { + detail::tracker.allocator_ref(); + } + + explicit allocator2(int t) : tag_(t) { detail::tracker.allocator_ref(); }