Base recursive_wrapper implementation on std::unique_ptr
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C++
- Stars
- 384
- Forks
- 96
- PR merge metrics
- No merged PRs in 30d
Description
It is simpler to design `recursive_wrapper` as "wrapper" over ready-to-use to RAII `std::unique_ptr`. Just add value semantics ([example](https://github.com/tomilov/variant/blob/master/include/versatile/recursive_wrapper.hpp)).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Read the current recursive_wrapper implementation and compare it with the linked versatile::recursive_wrapper example. Trace the existing ownership and copy/move behavior before deciding how the std::unique_ptr-based design should preserve value semantics. Done means the implementation follows that approach while retaining the wrapper's existing behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Refactor
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100