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:
parent
9c26c5facd
commit
a68d97d22d
1 changed files with 5 additions and 0 deletions
|
@ -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"
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue