Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

out_ptr/inout_ptr for all smart pointer types

Aperta
#56 25 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
tooling

Direzione di ricerca

Inizia leggendo la discussione collegata su Boost.Move e il design proposto di std::out_ptr/std::inout_ptr. Verifica se i maintainer di Boost.SmartPtr accettano le API proposte e determina la versione di C++ supportata e i vincoli di implementazione prima di identificare le modifiche necessarie al codice sorgente e ai test.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Dear Boost.SmartPtr authors:

(This issue is a continuation of the discussion from Boost.Move.)

My name is JeanHeyd and I am looking to make my std::out_ptr / std::inout_ptr type that I am proposing to the standard more widely and publicly available. I was given the advice to put it in Boost in some fashion, and I realized that rather than making a new library contribution it would be better off if this was put in one of the 2 smart pointer-containing libraries, Boost.Move or Boost.SmartPtr.

The author of Boost.Move has stated that it seems like a better match for Boost.SmartPtr, and I agree: therefore, I am proposing to add 2 new templated functions and 2 new templated classes: boost:out_ptr( ... ); and boost::inout_ptr( ... ); alongside boost::out_ptr_t<Smart, Pointer, Args...> and boost::inout_ptr_t<Smart, Pointer, Args...>.

I wanted to know if this was acceptable to the library maintainers here, and if so I would begin to move the current implementation into Boost.

If it is not acceptable, I understand.

If it is acceptable, I would like to know what version of C++ Boost.Smartptr targets and any other caveats I should be careful of when crafting my first pull request. I can do a C++11 implementation without the need for workarounds, but C++03 will require some finesse.

Please do let me know what you think! I eagerly await your response.

Sincerely,
JeanHeyd

Lingua principale
C++
Stelle
111
Fork
116
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di boostorg/smart_ptr

Tutte le issue di boostorg/smart_ptr

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.