0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 00:08:22 +02:00

ircd: Default argument ctor for byte_view.

This commit is contained in:
Jason Volk 2017-09-20 20:39:49 -07:00
parent 46588d0ae8
commit 841567bdf8

View file

@ -222,7 +222,7 @@ struct ircd::byte_view
return *reinterpret_cast<const T *>(s.data());
}
byte_view(const string_view &s)
byte_view(const string_view &s = {})
:s{s}
{
if(unlikely(sizeof(T) != s.size()))