Don't 'sink' uncopyable container

Calling sink was causing older versions of gcc to copy the container,
resulting in a compile error. So instead just disambiguate by putting
brackets around the expression.
This commit is contained in:
Daniel James
2016-10-25 18:04:34 +01:00
parent 14ccdbc7b6
commit a34785fa0d

View File

@ -437,7 +437,7 @@ void unordered_test(X& x, Key& k, Hash& hf, Pred& eq)
X a2a(10, hf, m);
X(10, m);
X a3a(10, m);
sink(X(m));
(X(m));
X a4a(m);
test::check_return_type<size_type>::equals(a.erase(k));