Skip to content

Conversation

maflcko
Copy link
Member

@maflcko maflcko commented Dec 21, 2020

Now that we can use std::variant from the vanilla standard library, drop the third-party boost variant dependency.

Patch is split out from #20480. A step-by-step replacement is possible because we don't have our own Variant wrapper and the source code specifies boost::variant explicitly.
I think a step-by-step replacement should be preferred, because it simplifies review.

@maflcko maflcko force-pushed the 2012-rpcStdVariant branch 2 times, most recently from fa38c8b to fa82f00 Compare December 21, 2020 20:13
@DrahtBot
Copy link
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@practicalswift
Copy link
Contributor

Concept ACK

Copy link
Member

@Sjors Sjors left a comment

Choose a reason for hiding this comment

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

ACK fa82f00 modulo include

@fjahr
Copy link
Contributor

fjahr commented Jan 1, 2021

ACK fa82f00 modulo include as @Sjors mentioned

I had started working on the same change before I found this and ended up with almost the same changeset for this part of the variant usage code.

@maflcko maflcko force-pushed the 2012-rpcStdVariant branch from fa82f00 to fa749fb Compare January 1, 2021 14:08
@fjahr
Copy link
Contributor

fjahr commented Jan 1, 2021

re-ACK fa749fb

1 similar comment
@Sjors
Copy link
Member

Sjors commented Jan 1, 2021

re-ACK fa749fb

@maflcko maflcko merged commit bc8ada1 into bitcoin:master Jan 4, 2021
@maflcko maflcko deleted the 2012-rpcStdVariant branch January 4, 2021 08:35
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jan 4, 2021
…r RPCArg.m_fallback

fa749fb rpc: Replace boost::variant with std::variant for RPCArg.m_fallback (MarcoFalke)

Pull request description:

  Now that we can use std::variant from the vanilla standard library, drop the third-party boost variant dependency.

  Patch is split out from bitcoin#20480. A step-by-step replacement is possible because we don't have our own `Variant` wrapper and the source code specifies `boost::variant` explicitly.
  I think a step-by-step replacement should be preferred, because it simplifies review.

ACKs for top commit:
  fjahr:
    re-ACK fa749fb
  Sjors:
    re-ACK fa749fb

Tree-SHA512: 5e3c12b7d535f73065b4afa8df0a488f78fb25d2234f5ecbf740e624db03a34c35fea100eb7d37e84741721310e6450b7fb4296a2207a7ed1fa24485b3650981
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Aug 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants