mapbox / mapbox/variant

Base recursive_wrapper implementation on std::unique_ptr

Open
#89 17 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.