[llvm] r283394 - Fix the build with MSVC 2013, still cannot default move ctors yet

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 5 14:44:46 PDT 2016


Author: rnk
Date: Wed Oct  5 16:44:46 2016
New Revision: 283394

URL: http://llvm.org/viewvc/llvm-project?rev=283394&view=rev
Log:
Fix the build with MSVC 2013, still cannot default move ctors yet

Ten days.

Modified:
    llvm/trunk/unittests/ADT/STLExtrasTest.cpp

Modified: llvm/trunk/unittests/ADT/STLExtrasTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ADT/STLExtrasTest.cpp?rev=283394&r1=283393&r2=283394&view=diff
==============================================================================
--- llvm/trunk/unittests/ADT/STLExtrasTest.cpp (original)
+++ llvm/trunk/unittests/ADT/STLExtrasTest.cpp Wed Oct  5 16:44:46 2016
@@ -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>




More information about the llvm-commits mailing list