-
Notifications
You must be signed in to change notification settings - Fork 38.7k
C++11: s/boost::scoped_ptr/std::unique_ptr/ #8629
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
Conversation
|
utACK 06a214a |
|
utACK 06a214a |
|
Seem pretty uninvasive. utACK 06a214aeaaa6ef12c11c20bb774ff0e065707afc |
|
Please also remove the include (paveljanik@775ac95). cACK (compilesACK) 06a214a |
Agreed. I'm surprised that that's the only instance. |
06a214a to
40abc35
Compare
|
@paveljanik Good catch! I greped boost/scoped_ptr but saw a bunch of hits in .Po files and missed that one. |
40abc35 to
cdd79eb
Compare
|
ACK cdd79eb |
cdd79eb C++11: s/boost::scoped_ptr/std::unique_ptr/ (Jorge Timón)
cdd79eb C++11: s/boost::scoped_ptr/std::unique_ptr/ (Jorge Timón)
cdd79eb C++11: s/boost::scoped_ptr/std::unique_ptr/ (Jorge Timón)
cdd79eb C++11: s/boost::scoped_ptr/std::unique_ptr/ (Jorge Timón)
…refactor. 58504c2 [Wallet] refactor CWallet/CWalletDB/CDB (Round 2) (furszy) c16390d [Wallet] refactor CWallet/CWalletDB/CDB (Round 1) (furszy) 99adac0 C++11: s/boost::scoped_ptr/std::unique_ptr/ (furszy) 815773e use constant references for strings in functions in wallet/*.* (furszy) 24f1041 Do not shadow variables. (Pavel Janík) 6a0c59a wallet: Warn on unexpected EOF while salvaging wallet (Wladimir J. van der Laan) 12bc297 dbwrapper: Use new .data() method of CDataStream (Wladimir J. van der Laan) b0f0d91 streams: Remove special cases for ancient MSVC (Wladimir J. van der Laan) ba96777 streams: Add data() method to CDataStream (Wladimir J. van der Laan) 6ec0722 wallet: Use CDataStream.data() (Wladimir J. van der Laan) ca1a3b0 [Wallet] remove unused code/conditions in ReadAtCursor (Jonas Schnelli) fd259f3 remove unused classes from db.h (Philip Kaufmann) Pull request description: Upgrading the wallet, wallet db and db wrapper areas with several back ports and updates adaptations. List of PRs: * dashpay#5933 * bitcoin#7537 * bitcoin#8191 * bitcoin#8564 * bitcoin#8574 * bitcoin#8629 * bitcoin#9353 Note: Low priority PR, can be reviewing after merge Sapling and tier two PRs. I made it because we are pretty far from upstream in the db area and want to introduce some new functionality in the future that requires a more up-to-date db layer. ACKs for top commit: random-zebra: ACK 58504c2 and merging... Tree-SHA512: e5a700e855bcec20f0b74e41825ddc3a36b56a0cbe83212c93d212c06765254464999567b395584dfeb9d4b12999bc835d2e89949684d64b1503db36c53fd3c8
I asked @sipa what to use in C++11 instead of introducing a new boost::scoped_ptr and he answered std::unique_ptr. Then I realized that completely replacing boost::scoped_ptr with std::unique_ptr is currently quite trivial, just a diff of +11 -11.