diff --git a/test/expand_bwd_test_allocator.hpp b/test/expand_bwd_test_allocator.hpp index 925858a..2e16093 100644 --- a/test/expand_bwd_test_allocator.hpp +++ b/test/expand_bwd_test_allocator.hpp @@ -79,7 +79,7 @@ class expand_bwd_test_allocator { typedef expand_bwd_test_allocator other; }; //!Constructor from the segment manager. Never throws - expand_bwd_test_allocator(T *buffer = 0, size_type sz = 0, difference_type offset = 0) + expand_bwd_test_allocator(T *buffer, size_type sz, difference_type offset) : mp_buffer(buffer), m_size(sz) , m_offset(offset), m_allocations(0){ } diff --git a/test/scoped_allocator_usage_test.cpp b/test/scoped_allocator_usage_test.cpp index d12e4fa..8cf9311 100644 --- a/test/scoped_allocator_usage_test.cpp +++ b/test/scoped_allocator_usage_test.cpp @@ -31,7 +31,7 @@ class SimpleAllocator public: typedef Ty value_type; - explicit SimpleAllocator(int value = 0) + explicit SimpleAllocator(int value) : m_state(value) {}