From e493c761bf21c80a63f1be10e1ccae519235441e Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 17 Mar 2016 20:45:38 +0000 Subject: [PATCH] Re-add (user defined) move ops to UnresolvedSetImpl to allow UnresolvedSet to be implicitly movable git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@263747 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/AST/UnresolvedSet.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/clang/AST/UnresolvedSet.h b/include/clang/AST/UnresolvedSet.h index 672ec4433d..c1be2aa0f2 100644 --- a/include/clang/AST/UnresolvedSet.h +++ b/include/clang/AST/UnresolvedSet.h @@ -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. -- 2.50.1