fix: torque literal fixed + experimental_angle example refactored
This commit is contained in:
1 parent
dddc7572aa
commit
8ca2b25349
5 files changed
+13
-9
No files matched your search
@@ -47,8 +47,8 @@ using torque = quantity<dim_torque, U, Rep>;
|
||||
inline namespace literals {
|
||||
|
||||
// Nm
|
||||
constexpr auto operator"" _q_Nm_per_rad(unsigned long long l) { gsl_ExpectsAudit(std::in_range<std::int64_t>(l)); return torque<newton_metre_per_radian, std::int64_t>(static_cast<std::int64_t>(l)); }
|
||||
constexpr auto operator"" _q_Nm_per_rad(long double l) { return torque<newton_metre_per_radian, long double>(l); }
|
||||
constexpr auto operator"" _q_N_m_per_rad(unsigned long long l) { gsl_ExpectsAudit(std::in_range<std::int64_t>(l)); return torque<newton_metre_per_radian, std::int64_t>(static_cast<std::int64_t>(l)); }
|
||||
constexpr auto operator"" _q_N_m_per_rad(long double l) { return torque<newton_metre_per_radian, long double>(l); }
|
||||
|
||||
} // namespace literals
|
||||
|
||||
|
||||
Reference in new issue
Block a user