mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
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
This commit is contained in:
parent
ca12616ca8
commit
d4b0124048
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user