0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

ircd::fmt: Use POD array here; avoid member function use out of initialization order.

This commit is contained in:
Jason Volk 2020-10-08 15:54:47 -07:00
parent 648563209f
commit 4db835ef5f

View file

@ -169,7 +169,7 @@ struct ircd::fmt::bsprintf
:snprintf
,string_view
{
std::array<char, MAX> buf;
char buf[MAX];
template<class... args>
bsprintf(const string_view &fmt,
@ -180,7 +180,7 @@ struct ircd::fmt::bsprintf
}
,string_view
{
buf.data(), size_t(static_cast<snprintf &>(*this))
buf, size_t(static_cast<snprintf &>(*this))
}{}
};