diff options
author | Ryan Ofsky <ryan@ofsky.org> | 2024-03-25 18:44:23 -0400 |
---|---|---|
committer | Ryan Ofsky <ryan@ofsky.org> | 2024-04-25 16:08:24 -0400 |
commit | 6a8b2befeab25e4e92d8e947a23e78014695e06c (patch) | |
tree | 96ec945314aa23726bcac64ea035f6e16962a750 /src/sync.h | |
parent | 834f65e82405bbed336f98996bc8cef366bbed0f (diff) |
refactor: Avoid copying util::Result values
Copying util::Result values is less efficient than moving them because they
allocate memory and contain strings. Also this is needed to avoid compile
errors in https://github.com/bitcoin/bitcoin/pull/25722 which adds a
std::unique_ptr member to util::Result which implicity disables copying.
Diffstat (limited to 'src/sync.h')
0 files changed, 0 insertions, 0 deletions