Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.

Drop overloaded members #36

Merged
merged 1 commit into from
May 30, 2022
Merged

Drop overloaded members #36

merged 1 commit into from
May 30, 2022

Conversation

maflcko
Copy link

@maflcko maflcko commented May 30, 2022

This is taken from
https://github.com/bitcoin/bitcoin/pull/15975/commits/a844dbed0ff4bdba014052d7ee83cf6c41879fcb

This should be safe and sane, because:

  • The overloaded members construct temporary copies and pass them on as
    const UniValue&, which will need to be copied again. Future changes
    that want to disable UniValue copy constructors will be easier with
    those members removed.
  • UniValue constructors are not marked explicit and there are no plans
    to make them explicit, so this change should not make unrelated future
    changes harder.

This is taken from
bitcoin/bitcoin@a844dbe

This should be safe and sane, because:

* The overloaded members construct temporary copies and pass them on as
  const UniValue&, which will need to be copied again. Future changes
  that want to disable UniValue copy constructors will be easier with
  those members removed.
* UniValue constructors are not marked explicit and there are no plans
  to make them explicit, so this change should not make unrelated future
  changes harder.
Copy link
Member

@fanquake fanquake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 076c051 - did not test downstream.

@fanquake fanquake merged commit de4f73d into bitcoin-core:bitcoin-fork May 30, 2022
@maflcko maflcko deleted the 2205-over-🔹 branch May 30, 2022 13:19
maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request May 30, 2022
de4f73ddca Merge bitcoin-core/univalue-subtree#36: Drop overloaded members
076c051488 Drop overloaded members
06265321de Merge bitcoin-core/univalue-subtree#35: Remove get_int/get_int64 in favor of getInt<>
462c503aa4 Remove get_int/get_int64 in favor of getInt<>
68c8f5532d Merge bitcoin-core/univalue-subtree#34: doc: remove TODO
297c53a5ee doc: remove TODO

git-subtree-dir: src/univalue
git-subtree-split: de4f73ddca40487179e9ed08c6f6aa745d6cbba3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants