Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Stop using namespace std (bitcoin-cli/-tx). #9220

Merged
merged 1 commit into from
Nov 25, 2016

Conversation

kallewoof
Copy link
Member

According to the "Source code organization" section in Developer notes, using namespace should be avoided. This commit removes using namespace std from bitcoin-cli/-tx and adds the std:: prefix in appropriate places.

@laanwj
Copy link
Member

laanwj commented Nov 25, 2016

Yes, this has to be done at some point.

@sipa
Copy link
Member

sipa commented Nov 25, 2016

Concept ACK

@paveljanik
Copy link
Contributor

ACK 2f2625a

Good candidate for same-binary check.

@maflcko
Copy link
Member

maflcko commented Nov 25, 2016

same-binaries ACK 2f2625a

@jonasschnelli
Copy link
Contributor

utACK 2f2625a

@maflcko maflcko merged commit 2f2625a into bitcoin:master Nov 25, 2016
maflcko pushed a commit that referenced this pull request Nov 25, 2016
2f2625a Removed using namespace std from bitcoin-cli/-tx and added std:: in appropriate places. (Karl-Johan Alm)
@kallewoof
Copy link
Member Author

@MarcoFalke I can't find any resources on same-binaries checking. I would like to make a more encompassing commit that deals with all these, but the diff is rather big so I'd like to do the same-binaries check beforehand myself.

@fanquake
Copy link
Member

@kallewoof Have a look at this repo https://github.com/laanwj/bitcoin-maintainer-tools

@kallewoof
Copy link
Member Author

Ahh, thanks a lot!

@kallewoof kallewoof deleted the no-using-ns branch December 1, 2016 00:48
codablock pushed a commit to codablock/dash that referenced this pull request Jan 17, 2018
…tx).

2f2625a Removed using namespace std from bitcoin-cli/-tx and added std:: in appropriate places. (Karl-Johan Alm)
zkbot added a commit to zcash/zcash that referenced this pull request Apr 13, 2018
CLI binary improvements

Cherry-picked from the following upstream PRs:

- bitcoin/bitcoin#5936
- bitcoin/bitcoin#7550
- bitcoin/bitcoin#7989
- bitcoin/bitcoin#7957
- bitcoin/bitcoin#9067
- bitcoin/bitcoin#9220

Excludes any changes that affected the QT code.
andvgal pushed a commit to energicryptocurrency/gen2-energi that referenced this pull request Jan 6, 2019
…tx).

2f2625a Removed using namespace std from bitcoin-cli/-tx and added std:: in appropriate places. (Karl-Johan Alm)
CryptoCentric pushed a commit to absolute-community/absolute that referenced this pull request Feb 25, 2019
……tx).


2f2625a Removed using namespace std from bitcoin-cli/-tx and added std:: 
in appropriate places. (Karl-Johan Alm)
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
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.

7 participants