From 87bf0196f2d0dac7a2bad45eb457e647afbed9e7 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 5 Oct 2016 21:44:46 +0000 Subject: [PATCH] Fix the build with MSVC 2013, still cannot default move ctors yet Ten days. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283394 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ADT/STLExtrasTest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unittests/ADT/STLExtrasTest.cpp b/unittests/ADT/STLExtrasTest.cpp index 849b6f1d097..4f49fb77479 100644 --- a/unittests/ADT/STLExtrasTest.cpp +++ b/unittests/ADT/STLExtrasTest.cpp @@ -136,7 +136,8 @@ template <> struct CanCopy { CanCopy(const CanCopy &) = delete; CanCopy() = default; - CanCopy(CanCopy &&) = default; + // FIXME: Use '= default' when we drop MSVC 2013. + CanCopy(CanCopy &&) {}; }; template -- 2.11.0