Try to fix constructor_tests on Visual C++ 7.1

I'm really not sure why it fails to compile, the error message isn't very
helpful.  I assume it might be because allocator1 has an explicit default
constructor, so I tried making it implicit.
This commit is contained in:
Daniel James
2018-01-17 10:30:20 +00:00
parent e64c5b34df
commit dc9faddf22

View File

@ -354,7 +354,12 @@ namespace test {
typedef allocator1<U> 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<U> 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();
}