Skip to content

Commit 1b3bd26

Browse files
Merge dashpay#6059: fix: build with gcc 13.2.0 - missing header memory in addrdb
a86f975 fix: build with gcc 13.2.0 - missing header memory in addrdb (Konstantin Akimov) Pull request description: ## Issue being fixed or feature implemented ``` In file included from test/addrman_tests.cpp:5: ./addrdb.h:51:99: error: ‘std::unique_ptr’ has not been declared 51 | std::optional<bilingual_str> LoadAddrman(const std::vector<bool>& asmap, const ArgsManager& args, std::unique_ptr<AddrMan>& addrman); | ^~~ ./addrdb.h:51:114: error: expected ‘,’ or ‘...’ before ‘<’ token 51 | std::optional<bilingual_str> LoadAddrman(const std::vector<bool>& asmap, const ArgsManager& args, std::unique_ptr<AddrMan>& addrman); | ``` ## What was done? adds missing header `<memory>` in addrdb ## How Has This Been Tested? Run build - it works ## Breaking Changes N/A ## Checklist: - [x] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone ACKs for top commit: UdjinM6: utACK a86f975 PastaPastaPasta: utACK a86f975 Tree-SHA512: e25f63b6b823b3ef0a0dcb43386bed144ab68e05d09552dc109fb7687e16422949cfc4deb1b65d6d0d842299bd0e13da673d90aae695dcedeec4bc27f33c6f5f
2 parents 7a91b51 + a86f975 commit 1b3bd26

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/addrdb.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include <net_types.h> // For banmap_t
1111
#include <univalue.h>
1212

13+
#include <memory>
1314
#include <optional>
1415
#include <vector>
1516

0 commit comments

Comments
 (0)