From: David Blaikie Date: Thu, 17 Mar 2016 20:45:38 +0000 (+0000) Subject: Re-add (user defined) move ops to UnresolvedSetImpl to allow UnresolvedSet to be... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e493c761bf21c80a63f1be10e1ccae519235441e;p=clang 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 --- 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.