diff --git a/src/wallet/test/db_tests.cpp b/src/wallet/test/db_tests.cpp index ea32199497..41951e84c8 100644 --- a/src/wallet/test/db_tests.cpp +++ b/src/wallet/test/db_tests.cpp @@ -34,9 +34,9 @@ inline std::ostream& operator<<(std::ostream& os, const std::pair StringBytes(std::string_view str) +inline std::span StringBytes(std::string_view str) { - return AsBytes({str.data(), str.size()}); + return std::as_bytes(std::span{str}); } static SerializeData StringData(std::string_view str)