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:
Daniel James
2018-01-17 10:22:49 +00:00
parent 57492c1a94
commit e64c5b34df

View File

@ -162,7 +162,8 @@ struct insert_lvalue_pos_type
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;
@ -214,7 +215,8 @@ struct emplace_lvalue_pos_type
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;