From: David Blaikie Date: Wed, 4 Mar 2015 07:35:02 +0000 (+0000) Subject: Make format_object_base explicitly copyable, so format_objects can be copied without... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d4b012404842b03c106a0ad149ec677322d62662;p=oota-llvm.git Make format_object_base explicitly copyable, so format_objects can be copied without relying on the implicit copy ctor Use of the implicit copy ctor is deprecated in C++11 in the presence of a user declared dtor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231222 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/Format.h b/include/llvm/Support/Format.h index 682c5a99161..0bb8cbbc6e6 100644 --- a/include/llvm/Support/Format.h +++ b/include/llvm/Support/Format.h @@ -38,6 +38,7 @@ class format_object_base { protected: const char *Fmt; ~format_object_base() {} // Disallow polymorphic deletion. + format_object_base(const format_object_base&) = default; virtual void home(); // Out of line virtual method. /// Call snprintf() for this object, on the given buffer and size.