mirror of
https://github.com/matrix-construct/construct
synced 2024-12-23 22:13:55 +01:00
ircd::util: Expand the va_rtti array to 12 elements (192 bytes).
This commit is contained in:
parent
c8953c038d
commit
c2ca0637a7
1 changed files with 4 additions and 3 deletions
|
@ -626,11 +626,11 @@ syscall(function&& f,
|
|||
// exceptions and logger et al in their respective translation units rather than the header
|
||||
// files.
|
||||
//
|
||||
// Limitations: The choice of a fixed array of 8 is because std::initializer_list doesn't
|
||||
// Limitations: The choice of a fixed array of 12 is because std::initializer_list doesn't
|
||||
// seem to work and other containers may be heavy in this context.
|
||||
//
|
||||
struct va_rtti
|
||||
:std::array<std::pair<const void *, const std::type_info *>, 8>
|
||||
:std::array<std::pair<const void *, const std::type_info *>, 12>
|
||||
{
|
||||
size_t argc;
|
||||
|
||||
|
@ -641,7 +641,7 @@ struct va_rtti
|
|||
|
||||
template<class... Args>
|
||||
va_rtti(Args&&... args)
|
||||
:std::array<std::pair<const void *, const std::type_info *>, 8>
|
||||
:std::array<std::pair<const void *, const std::type_info *>, 12>
|
||||
{{
|
||||
std::make_pair(std::addressof(args), std::addressof(typeid(Args)))...
|
||||
}}
|
||||
|
@ -654,6 +654,7 @@ struct va_rtti
|
|||
}
|
||||
};
|
||||
|
||||
static_assert(sizeof(va_rtti) == 192 + 8, "");
|
||||
|
||||
} // namespace util
|
||||
} // namespace ircd
|
||||
|
|
Loading…
Reference in a new issue