refactor: UDLs switched to use gsl_ExpectsAudit (checks enabled only in a Debug build)
This commit is contained in:
1 parent
fe335b656a
commit
35e6253fb8
73 files changed
+562
-562
No files matched your search
@@ -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); }
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user