r263747 - Re-add (user defined) move ops to UnresolvedSetImpl to allow UnresolvedSet to be implicitly movable

David Blaikie via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 17 13:45:38 PDT 2016


Author: dblaikie
Date: Thu Mar 17 15:45:38 2016
New Revision: 263747

URL: http://llvm.org/viewvc/llvm-project?rev=263747&view=rev
Log:
Re-add (user defined) move ops to UnresolvedSetImpl to allow UnresolvedSet to be implicitly movable

Modified:
    cfe/trunk/include/clang/AST/UnresolvedSet.h

Modified: cfe/trunk/include/clang/AST/UnresolvedSet.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/UnresolvedSet.h?rev=263747&r1=263746&r2=263747&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/UnresolvedSet.h (original)
+++ cfe/trunk/include/clang/AST/UnresolvedSet.h Thu Mar 17 15:45:38 2016
@@ -63,6 +63,10 @@ private:
   UnresolvedSetImpl(const UnresolvedSetImpl &) = default;
   UnresolvedSetImpl &operator=(const UnresolvedSetImpl &) = default;
 
+  // FIXME: Switch these to "= default" once MSVC supports generating move ops
+  UnresolvedSetImpl(UnresolvedSetImpl &&) {}
+  UnresolvedSetImpl &operator=(UnresolvedSetImpl &&) { return *this; }
+
 public:
   // We don't currently support assignment through this iterator, so we might
   // as well use the same implementation twice.




More information about the cfe-commits mailing list