Alternative workaround for MSVC compilation failure, from Dimitry Andric

llvm-svn: 103409
This commit is contained in:
Douglas Gregor 2010-05-10 17:28:19 +00:00
parent b319adec49
commit 67a587c9e6
1 changed files with 1 additions and 8 deletions

View File

@ -114,7 +114,7 @@ public:
: Expr(move(const_cast<FullExprArg&>(Other).Expr)) {}
FullExprArg &operator=(const FullExprArg& Other) {
Expr = ExprArg(move(const_cast<FullExprArg&>(Other).Expr));
Expr.operator=(move(const_cast<FullExprArg&>(Other).Expr));
return *this;
}
@ -134,13 +134,6 @@ public:
explicit FullExprArg(ExprArg expr)
: Expr(move(expr)) {}
#if defined(_MSC_VER)
// Last tested with Visual Studio 2008.
// Visual C++ complains about the operator= above, claiming that Expr
// is not accessible.
public:
#endif
ExprArg Expr;
};