On 2019-07-19 22:16, Max Haughton wrote:
Isn't assert a template (file and line) rather than a plain function call?
No. It's a keyword, it's built-in to the compiler. It get extra benefits compared to a regular functions: the asserts will be removed in release builds.
-- /Jacob Carlborg