]> granicus.if.org Git - clang/commitdiff
Re-add (user defined) move ops to UnresolvedSetImpl to allow UnresolvedSet to be...
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 17 Mar 2016 20:45:38 +0000 (20:45 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 17 Mar 2016 20:45:38 +0000 (20:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263747 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/UnresolvedSet.h

index 672ec4433d7d3d762b417a43f3866c2c7f899b7a..c1be2aa0f2013242482f6a2fd5aad7a65c9d7300 100644 (file)
@@ -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.