mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
Don't test inserting from initializer list in old clang
There's a problem with it causing an ambiguous overload. I don't think there's anything we can do to fix that, so just don't test it. There's another bug where a std::pair doesn't get correctly constructed from an rvalue when using Clang 3.1 in C++11 mode. But I can't see any way to easily fix that, and it's a pretty old compiler now.
This commit is contained in:
@ -638,7 +638,9 @@ void unordered_copyable_test(X& x, Key& k, T& t, Hash& hf, Pred& eq)
|
||||
a.insert(list);
|
||||
a.insert({t, t, t});
|
||||
|
||||
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1900)
|
||||
#if !BOOST_WORKAROUND(BOOST_MSVC, < 1900) && \
|
||||
(!defined(__clang__) || __clang_major__ >= 4 || \
|
||||
(__clang_major__ == 3 && __clang_minor__ >= 4))
|
||||
a.insert({});
|
||||
a.insert({t});
|
||||
a.insert({t, t});
|
||||
|
Reference in New Issue
Block a user