From a34785fa0d71ff328129f86ae4da78f731f614ad Mon Sep 17 00:00:00 2001 From: Daniel James Date: Tue, 25 Oct 2016 18:04:34 +0100 Subject: [PATCH] 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. --- test/unordered/compile_tests.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unordered/compile_tests.hpp b/test/unordered/compile_tests.hpp index 4663c8e5..12581763 100644 --- a/test/unordered/compile_tests.hpp +++ b/test/unordered/compile_tests.hpp @@ -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::equals(a.erase(k));