~satchmo/libvmm#56: 
Default copy/move methods for Address

According to CPP core guidelines:

When a destructor needs to be declared just to make it virtual, it can be defined as defaulted. To avoid suppressing the implicit move operations they must also be declared, and then to avoid the class becoming move-only (and not copyable) the copy operations must be declared:

class AbstractBase {
    public:
        virtual ~AbstractBase() = default;
        AbstractBase(const AbstractBase&) = default;
        AbstractBase& operator=(const AbstractBase&) = default;
        AbstractBase(AbstractBase&&) = default;
        AbstractBase& operator=(AbstractBase&&) = default;
};
Status
RESOLVED IMPLEMENTED
Submitter
~satchmo
Assigned to
No-one
Submitted
3 years ago
Updated
3 years ago
Labels
No labels applied.

~satchmo REPORTED IMPLEMENTED 3 years ago

Register here or Log in to comment, or comment via email.