diff --git a/src/addrman.h b/src/addrman.h index 2a074268be..4985fc764c 100644 --- a/src/addrman.h +++ b/src/addrman.h @@ -106,7 +106,7 @@ public: * @param[in] in_new Select addresses only from one table (true = new, false = tried, nullopt = both) * @return Number of unique addresses that match specified options. */ - size_t Size(std::optional net = {}, std::optional in_new = {}) const; + size_t Size(std::optional net = std::nullopt, std::optional in_new = std::nullopt) const; /** * Attempt to add one or more addresses to addrman's new table.