Empact
commented at 5:49 PM on July 17, 2018:
member
And use it to reduce chainparamsbase.cpp's and remove interfaces/handler.cpp's reliance on util.h
This is a step toward fixing the chainparamsbase -> util circular dependency.
Confirmed no need for the util.h include via iwyu and visual inspection.
Extracted from #13639 for easier review.
practicalswift
commented at 5:54 PM on July 17, 2018:
contributor
Concept ACK
Empact force-pushed on Jul 17, 2018
Extract MakeUnique into utilmemory.h
And use it to reduce chainparamsbase's direct reliance on util.h to
only args handling.
utilmemory.h can be replaced with <memory> once we move to C++14.
33539cb34b
Empact force-pushed on Jul 17, 2018
MarcoFalke
commented at 6:04 PM on July 17, 2018:
member
utACK33539cb34b8f59b65387c142a46744fc83d3ed31
theuni
commented at 6:31 PM on July 17, 2018:
member
utACK33539cb34b8f59b65387c142a46744fc83d3ed31
laanwj
commented at 6:40 PM on July 17, 2018:
member
yes why not
utACK33539cb34b8f59b65387c142a46744fc83d3ed31
MarcoFalke merged this on Jul 17, 2018
MarcoFalke closed this on Jul 17, 2018
MarcoFalke referenced this in commit c01ab133d7 on Jul 17, 2018
Empact deleted the branch on Jul 17, 2018
Empact
commented at 7:09 PM on July 17, 2018:
member
(interfaces/handler.h has correct #includes/fwd-decls)
(interfaces/handler.cpp has correct #includes/fwd-decls)
make[2]: *** [interfaces/libbitcoin_util_a-handler.o] Error 2
CXX libbitcoin_util_a-utilstrencodings.o
chainparamsbase.h should remove these lines:
- #include <vector> // lines 10-10
The full include-list for chainparamsbase.h:
#include <memory> // for unique_ptr
#include <string> // for string
---
chainparamsbase.cpp should add these lines:
#include <stdexcept> // for runtime_error
The full include-list for chainparamsbase.cpp:
#include <chainparamsbase.h>
#include <assert.h> // for assert
#include <tinyformat.h> // for strprintf
#include <util.h> // for ArgsManager, gArgs, OptionsCategory, Options...
#include <utilmemory.h> // for MakeUnique
#include <stdexcept> // for runtime_error
PastaPastaPasta referenced this in commit fe8ae1c2bc on Jul 19, 2020
PastaPastaPasta referenced this in commit 5f32f89acc on Jul 24, 2020
PastaPastaPasta referenced this in commit 07bb09cc6b on Jul 27, 2020
UdjinM6 referenced this in commit 0a45392c15 on Jul 27, 2020
UdjinM6 referenced this in commit 9903dcd2aa on Jul 27, 2020
This is a metadata mirror of the GitHub repository
bitcoin/bitcoin.
This site is not affiliated with GitHub.
Content is generated from a GitHub metadata backup.
generated: 2026-04-30 00:15 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me