Skip to content

Add virtual destructor to serializable struct#102

Merged
woodser merged 1 commit into
woodser:masterfrom
everoddandeven:serializable-struct-virtual-destructor
May 30, 2026
Merged

Add virtual destructor to serializable struct#102
woodser merged 1 commit into
woodser:masterfrom
everoddandeven:serializable-struct-virtual-destructor

Conversation

@everoddandeven
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread src/daemon/monero_daemon_model.h Outdated
*/
struct serializable_struct {

virtual ~serializable_struct() {}
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be:

virtual ~serializable_struct() = default;

So the compiler is not prevented from automatically generating the move constructor and assignment operator?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I have updated to = default;, thank you.

@everoddandeven everoddandeven force-pushed the serializable-struct-virtual-destructor branch from 7d9dd97 to 415c0e4 Compare May 30, 2026 00:57
@woodser woodser merged commit d053a1b into woodser:master May 30, 2026
@everoddandeven everoddandeven deleted the serializable-struct-virtual-destructor branch May 30, 2026 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants