diff --git a/test/exception/insert_exception_tests.cpp b/test/exception/insert_exception_tests.cpp index f0e55ae7..57314a6e 100644 --- a/test/exception/insert_exception_tests.cpp +++ b/test/exception/insert_exception_tests.cpp @@ -162,7 +162,8 @@ struct insert_lvalue_pos_type template friend impl generate(insert_lvalue_pos_type, T& x) { - return impl(x); + impl r(x); + return r; } } insert_lvalue_pos; @@ -214,7 +215,8 @@ struct emplace_lvalue_pos_type template friend impl generate(emplace_lvalue_pos_type, T& x) { - return impl(x); + impl r(x); + return r; } } emplace_lvalue_pos;