bytes: define contructor for fmt_hex

clang 10 does not implement p0960r3, so we must define a
constructor for fmt_hex.
This commit is contained in:
Avi Kivity
2020-09-21 13:57:19 +03:00
parent 388dcf126c
commit 30f2b3ba2f

View File

@@ -56,6 +56,7 @@ struct hash<bytes_view> {
struct fmt_hex {
bytes_view& v;
fmt_hex(bytes_view& v) noexcept : v(v) {}
};
std::ostream& operator<<(std::ostream& os, const fmt_hex& hex);