From e64c5b34df7f7a2b3df32c1e6afa614096734860 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Wed, 17 Jan 2018 10:22:49 +0000 Subject: [PATCH] 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. --- test/exception/insert_exception_tests.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;