0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-02-17 01:00:10 +01:00

ircd::util: Static assertion of va_rtti argument count.

This commit is contained in:
Jason Volk 2018-03-22 13:31:58 -07:00
parent 9c26c5facd
commit a68d97d22d

View file

@ -59,6 +59,11 @@ struct ircd::util::va_rtti
}
{
assert(argc <= max_size());
static_assert
(
sizeof...(args) <= max_size(),
"Too many arguments to va_rtti"
);
}
};