Make format_object_base explicitly copyable, so format_objects can be copied without...
authorDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Mar 2015 07:35:02 +0000 (07:35 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Wed, 4 Mar 2015 07:35:02 +0000 (07:35 +0000)
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

index 682c5a99161470502425c354d769d1cc6f01ebb1..0bb8cbbc6e6074502b19e904819e03d133bac418 100644 (file)
@@ -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.