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
0(interfaces/handler.h has correct #includes/fwd-decls)
1 2(interfaces/handler.cpp has correct #includes/fwd-decls)
3make[2]:*** [interfaces/libbitcoin_util_a-handler.o] Error 2 4 CXX libbitcoin_util_a-utilstrencodings.o
5 6chainparamsbase.h should remove these lines:
7-#include <vector>// lines 10-10
8 9The full include-list for chainparamsbase.h:
10#include<memory>// for unique_ptr
11#include<string>// for string
12---1314chainparamsbase.cpp should add these lines:
15#include<stdexcept>// for runtime_error
1617The full include-list for chainparamsbase.cpp:
18#include<chainparamsbase.h>19#include<assert.h>// for assert
20#include<tinyformat.h>// for strprintf
21#include<util.h>// for ArgsManager, gArgs, OptionsCategory, Options...
22#include<utilmemory.h>// for MakeUnique
23#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: 2024-11-17 09:12 UTC
This site is hosted by @0xB10C More mirrored repositories can be found on mirror.b10c.me