0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-28 23:08:20 +02:00

ircd:Ⓜ️ ircd::buffer conversions for id::bufs.

This commit is contained in:
Jason Volk 2017-10-01 00:16:05 -07:00
parent a8f9b3b847
commit 2982166072

View file

@ -109,6 +109,16 @@ struct ircd::m::id::buf
std::array<char, SIZE> b;
public:
operator const_buffer() const
{
return b;
}
operator mutable_buffer()
{
return b;
}
template<class... args>
buf(args&&... a)
:T{b.data(), b.size(), std::forward<args>(a)...}