Work around gcc.gnu.org/PR87766
authorEric Fiselier <eric@efcs.ca>
Fri, 26 Oct 2018 20:20:12 +0000 (20:20 +0000)
committerEric Fiselier <eric@efcs.ca>
Fri, 26 Oct 2018 20:20:12 +0000 (20:20 +0000)
llvm-svn: 345425

libcxx/test/std/utilities/any/any.class/any.assign/value.pass.cpp

index ddedb88..f8f6252 100644 (file)
@@ -125,7 +125,7 @@ template <class Tp, bool Move = false>
 void test_assign_throws() {
 #if !defined(TEST_HAS_NO_EXCEPTIONS)
     auto try_throw =
-    [](any& lhs, auto&& rhs) {
+    [](any& lhs, Tp& rhs) {
         try {
             Move ? lhs = std::move(rhs)
                  : lhs = rhs;