Skip to content

Modernize copy prevention in Emitter, YamlEmitter, and JsonEmitter#678

Open
lyskov-ai wants to merge 1 commit intoRosettaCommons:mainfrom
lyskov-ai:refactor/basic-emitter-copy-prevention
Open

Modernize copy prevention in Emitter, YamlEmitter, and JsonEmitter#678
lyskov-ai wants to merge 1 commit intoRosettaCommons:mainfrom
lyskov-ai:refactor/basic-emitter-copy-prevention

Conversation

@lyskov-ai
Copy link
Copy Markdown
Contributor

Summary

  • Emitter, YamlEmitter, JsonEmitter: replace private/protected undefined copy ctor declarations with explicit = delete in the public section, and add the missing copy assignment = delete.
  • Also remove the redundant undefined null-ctor declarations in YamlEmitter and JsonEmitter — these were suppressed automatically in C++11 by the presence of user-declared non-default constructors.

Part of the ongoing Rule-of-Zero / modern C++ idiom cleanup in basic/.

🤖 Generated with Claude Code

Replace private/protected undefined copy ctor declarations with explicit
= delete in the public section, and add the missing copy assignment = delete.
Also remove the redundant undefined null-ctor declarations (suppressed
automatically in C++11 by the presence of user-declared non-default ctors).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant