Pull Request №670 RosettaCommons/rosetta/main ← lyskov-ai/rosetta/refactor/registrant-modernize-copy-prevention
Merge: 5c9f6db69d1a20db6353738e3724092516415bd3←61c9a26d96c83d65f054961f4dae132e43c4b090
Modernize copy prevention in factory/Registrant to use = delete
----------------
Merge commit message:
Modernize copy prevention in Registrant to use = delete
Replace old-style private-and-undefined copy constructor/assignment
with explicit = delete. A comment explains the non-obvious reason:
each constructor calls ProductFactory::add(), so a copy would
silently re-register the same key.