Pull Request №663 RosettaCommons/rosetta/main ← lyskov-ai/rosetta/refactor/variant-option-key-unique-ptr
Merge: 068bd85322153b1ddc5a354f8cf0633a5631e9fa←237432f9eebcac8bb7a0e46347ae2c7283ba279c
Refactor VariantKey and VariantOption raw pointers to unique_ptr
----------------
Merge commit message:
Refactor VariantKey and VariantOption raw pointers to unique_ptr
Both classes held a raw owning pointer and manually defined
copy-constructor, copy-assignment, and destructor, but lacked move
constructor and move-assignment (Rule of Five violation). Replacing the
raw pointer with std::unique_ptr eliminates the manual destructor and
adds correct move semantics via = default; the copy operations are
preserved using unique_ptr::reset with the existing clone() deep-copy
logic.