dashpay / dash

Dash - Reinventing Cryptocurrency
https://www.dash.org
MIT License
1.49k stars 1.19k forks source link

fix: build with gcc 13.2.0 - missing header memory in addrdb #6059

Closed knst closed 3 weeks ago

knst commented 3 weeks ago

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: