Fix the build with MSVC 2013, still cannot default move ctors yet
authorReid Kleckner <rnk@google.com>
Wed, 5 Oct 2016 21:44:46 +0000 (21:44 +0000)
committerReid Kleckner <rnk@google.com>
Wed, 5 Oct 2016 21:44:46 +0000 (21:44 +0000)
Ten days.

llvm-svn: 283394

llvm/unittests/ADT/STLExtrasTest.cpp

index 849b6f1..4f49fb7 100644 (file)
@@ -136,7 +136,8 @@ template <> struct CanCopy<false> {
   CanCopy(const CanCopy &) = delete;
 
   CanCopy() = default;
-  CanCopy(CanCopy &&) = default;
+  // FIXME: Use '= default' when we drop MSVC 2013.
+  CanCopy(CanCopy &&) {};
 };
 
 template <bool Moveable, bool Copyable>