From d4b012404842b03c106a0ad149ec677322d62662 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Wed, 4 Mar 2015 07:35:02 +0000 Subject: [PATCH] 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 --- include/llvm/Support/Format.h | 1 + 1 file changed, 1 insertion(+) 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. -- 2.34.1