SK
Size: a a a
SK
SK
VK
VK
SK
K
с
P
K
C
P
SS
49152-65535
D
K
K
K
с
int a, b;
foo("%i %i", a, b);
рухнет по static_assert'у, например.
int a; double b;
foo("%i %i", a, b);
P
SS
D
template <typename... Args>
void foo() { foo_impl<0, Args...>(); }
template <size_t Index, typename Current, typename... Args>
void foo_impl()
{
if constexpr(Index == 0)
static_assert(std::is_same_v<Current, int>);
....
foo_impl<Index + 1, Args...>();
}