forked from boostorg/unordered
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:
@ -354,7 +354,12 @@ namespace test {
|
|||||||
typedef allocator1<U> other;
|
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();
|
detail::tracker.allocator_ref();
|
||||||
}
|
}
|
||||||
@ -601,7 +606,12 @@ namespace test {
|
|||||||
typedef allocator2<U> other;
|
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();
|
detail::tracker.allocator_ref();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user