Unlike runtime assertions, static assertions are checked at compile-time and are also enforced when compiling optimized builds.