зеркало из https://github.com/microsoft/clang-1.git
Alternative workaround for MSVC compilation failure, from Dimitry Andric
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103409 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
258cf27668
Коммит
c896ea80bb
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче