mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd::buffer: Fix assertion for empty buffer.
This commit is contained in:
parent
0e2fe01426
commit
e5f12e9750
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue