From dc70c1eb08ba8f0e77ac0810312a67468ade9419 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Wed, 1 Feb 2023 10:18:08 -0500 Subject: [PATCH] addrman: Use std::nullopt instead of {} --- src/addrman.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.