Issue Details

Number
26004
Title
util::Result has confusing interface for std::*_ptr T
Description
`util::Result<std::unique_ptr<...>>` treats a nullptr as a `true` value. This has caused at least one bug so far. Can we easily forbid passing nullptr in this way? Is there a better/safer solution?
URL
https://github.com/bitcoin/bitcoin/issue/26004
Closed by
Back to List