From 95e477902e722c351cf5675f6aa58273351a69d2 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 18 Sep 2016 10:28:21 +0100 Subject: [PATCH] Special case for Visual C++ 12 test failure. Plus some extra tests while I'm at it. --- test/unordered/compile_tests.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/unordered/compile_tests.hpp b/test/unordered/compile_tests.hpp index e944bf0e..516304cb 100644 --- a/test/unordered/compile_tests.hpp +++ b/test/unordered/compile_tests.hpp @@ -477,7 +477,15 @@ void unordered_copyable_test(X& x, Key& k, T& t, Hash& hf, Pred& eq) a.insert(i, j); #if !defined(BOOST_NO_CXX11_HDR_INITIALIZER_LIST) + std::initializer_list list = {t}; + a.insert(list); + a.insert({t,t,t}); + +#if !defined(BOOST_MSVC) || BOOST_MSVC >= 1800 + a.insert({}); a.insert({t}); + a.insert({t,t}); +#endif #endif X a10;