mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 01:30:12 +01:00
ircd::fmt: Use POD array here; avoid member function use out of initialization order.
This commit is contained in:
parent
648563209f
commit
4db835ef5f
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
}{}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue