0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-02 21:59:02 +02:00

ircd::util: Expand the va_rtti array to 12 elements (192 bytes).

This commit is contained in:
Jason Volk 2017-03-23 15:03:54 -07:00
parent c8953c038d
commit c2ca0637a7

View file

@ -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