HomePhabricator

[RCU] Add an implicit converting constructor

Description

[RCU] Add an implicit converting constructor

Summary: This will create an RCUPtr<T> from an RCUPtr<U> if U * is implicitely convertible to T *. This will come in handy for converting RCUPtr<T> to RCUPtr<const T>.

Test Plan:

ninja check

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

Subscribers: deadalnix

Differential Revision: https://reviews.bitcoinabc.org/D11509

Details

Provenance
FabienAuthored on May 20 2022, 13:30
FabienPushed on May 23 2022, 08:27
Reviewer
Restricted Project
Differential Revision
D11509: [RCU] Add an implicit converting constructor
Parents
rABC38abe3e93298: [avalanche] Remove unnecessary code path in addNodeToQuorum
Branches
Unknown
Tags
Unknown