Pull Request №674 RosettaCommons/rosetta/main ← lyskov-ai/rosetta/refactor/basic-otstream-copy-prevention
Merge: 5c9f6db69d1a20db6353738e3724092516415bd3←77f1ba2d66e0e1ec62e5d9dd75cc9bb7c64eb770
Modernize copy prevention in basic_otstream and TracerImpl
----------------
Merge commit message:
Modernize copy prevention in basic_otstream and TracerImpl
basic_otstream: replace private undefined copy ctor with explicit
= delete in the public section for both copy ctor and copy assignment.
Add a comment explaining why: the destructor calls delete this->rdbuf(),
so a copy sharing the same buffer would cause a double-free.
TracerImpl: move the already-deleted copy ctor from private to public
and add the missing copy assignment = delete.