mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
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:
@ -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));
|
||||
|
Reference in New Issue
Block a user