From ca37f0f990068c5e511b8d4808b099a7a57459b5 Mon Sep 17 00:00:00 2001 From: Tim Shen Date: Wed, 10 Aug 2016 18:08:38 +0000 Subject: [PATCH] [ADT] Removed synthesized constructor introduced in r278251, since MSVC doesn't support them llvm-svn: 278259 --- llvm/include/llvm/ADT/ScopeExit.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/include/llvm/ADT/ScopeExit.h b/llvm/include/llvm/ADT/ScopeExit.h index 497e80bfac46..6786a61c0bf1 100644 --- a/llvm/include/llvm/ADT/ScopeExit.h +++ b/llvm/include/llvm/ADT/ScopeExit.h @@ -30,8 +30,7 @@ public: template explicit scope_exit(Fp &&F) : ExitFunction(std::forward(F)) {} - scope_exit(const scope_exit &) = default; - scope_exit(scope_exit &&) = default; + scope_exit(scope_exit &&Rhs) : ExitFunction(std::move(Rhs.ExitFunction)) {} ~scope_exit() { ExitFunction(); } };