refactor: precondition checks and asserts cleanup

This commit is contained in:
Mateusz Pusz
2024-03-19 10:37:01 +09:00
parent fb97c2ea5a
commit a62fdd2331
5 changed files with 14 additions and 17 deletions

View File

@@ -52,7 +52,7 @@ Many reasons make UDLs a poor choice for a physical units library:
```cpp
constexpr auto operator"" _q_kg_m2_per_s(unsigned long long l)
{
gsl_ExpectsAudit(std::in_range<std::int64_t>(l));
gsl_Expects(std::in_range<std::int64_t>(l));
return angular_momentum<kilogram_metre_sq_per_second, std::int64_t>(static_cast<std::int64_t>(l));
}