refactor: UDLs switched to use gsl_ExpectsAudit (checks enabled only in a Debug build)

This commit is contained in:
Mateusz Pusz committed 2021-02-18 20:17:10 +01:00
1 parent fe335b656a
commit 35e6253fb8
73 files changed
+562 -562

No files matched your search

+1 -1
View File
@@ -41,7 +41,7 @@ using angle = quantity<dim_angle<>, U, Rep>;
inline namespace literals {
// rad
constexpr auto operator"" _q_rad(unsigned long long l) { gsl_Expects(std::in_range<std::int64_t>(l)); return angle<radian, std::int64_t>(static_cast<std::int64_t>(l)); }
constexpr auto operator"" _q_rad(unsigned long long l) { gsl_ExpectsAudit(std::in_range<std::int64_t>(l)); return angle<radian, std::int64_t>(static_cast<std::int64_t>(l)); }
constexpr auto operator"" _q_rad(long double l) { return angle<radian, long double>(l); }