1
0
Fork 0
forked from lthn/blockchain

unit_tests: repair compilation on the G++ 12 compiler (#473)

This commit is contained in:
Stёpa Dolgorukov 2024-10-25 21:06:21 +05:00 committed by GitHub
parent d88e1952a6
commit 4e78beebeb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,10 +26,12 @@ struct Struct
char blob[8];
};
std::ostream& operator <<(std::ostream& o, const currency::signature_v& v)
namespace currency
{
return o;
ostream& operator<<(ostream& stream, [[maybe_unused]] const currency::signature_v& signature)
{
return stream;
}
}
template <class Archive>
@ -902,4 +904,4 @@ TEST(Serialization, versioning2)
r = perform_test_ser_vers<A_v3>(a_3);
ASSERT_TRUE(r);
}
}