3 ms·
Well use static_assert then. Not all checks can be done at runtime. Also isn't failing the assertion the whole point here? Without the assertion you would have
by IshKebab 3y ago
Well use static_assert then. Not all checks can be done at runtime.
Also isn't failing the assertion the whole point here? Without the assertion you would have a possibly hard-to-find bug rather than an assertion failure.