From: Richard Smith Date: Tue, 13 Sep 2016 20:00:02 +0000 (+0000) Subject: Work around MSVC 2013's inability to default move special members. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba75b718a17a7b6d1dc89308cf6de117ec2b1bbc;p=clang Work around MSVC 2013's inability to default move special members. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281382 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp index d6881ae307..00769a4557 100644 --- a/utils/TableGen/ClangDiagnosticsEmitter.cpp +++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp @@ -911,9 +911,9 @@ namespace { struct DiagText { struct Piece { // This type and its derived classes are move-only. - Piece() = default; - Piece(Piece &&O) = default; - Piece &operator=(Piece &&O) = default; + Piece() {} + Piece(Piece &&O) {} + Piece &operator=(Piece &&O) { return *this; } virtual void print(std::vector &RST) = 0; virtual ~Piece() {}