0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

ircd::buffer: Fix assertion for empty buffer.

This commit is contained in:
Jason Volk 2017-11-30 10:24:51 -08:00
parent 0e2fe01426
commit e5f12e9750

View file

@ -540,7 +540,7 @@ template<class it>
std::ostream &
ircd::buffer::operator<<(std::ostream &s, const buffer<it> &buffer)
{
assert(!null(buffer));
assert(!null(buffer) || get<1>(buffer) == nullptr);
s.write(data(buffer), size(buffer));
return s;
}