mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-31 11:57:15 +02:00
Try to fix insert_exception_tests on Visual C++ 7.1
It doesn't seem to like the nested template structs. If this doesn't work, I'll try moving them into the top level.
This commit is contained in:
@@ -162,7 +162,8 @@ struct insert_lvalue_pos_type
|
|||||||
|
|
||||||
template <typename T> friend impl<T> generate(insert_lvalue_pos_type, T& x)
|
template <typename T> friend impl<T> generate(insert_lvalue_pos_type, T& x)
|
||||||
{
|
{
|
||||||
return impl<T>(x);
|
impl<T> r(x);
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
} insert_lvalue_pos;
|
} insert_lvalue_pos;
|
||||||
|
|
||||||
@@ -214,7 +215,8 @@ struct emplace_lvalue_pos_type
|
|||||||
|
|
||||||
template <typename T> friend impl<T> generate(emplace_lvalue_pos_type, T& x)
|
template <typename T> friend impl<T> generate(emplace_lvalue_pos_type, T& x)
|
||||||
{
|
{
|
||||||
return impl<T>(x);
|
impl<T> r(x);
|
||||||
|
return r;
|
||||||
}
|
}
|
||||||
} emplace_lvalue_pos;
|
} emplace_lvalue_pos;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user