File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -4,19 +4,19 @@ namespace sds::Utilities
44{
55 template <class T >
66 concept is_number_v = std::is_integral_v<T> || std::is_floating_point_v<T>;
7- constexpr double ToDub (const is_number_v auto something)
7+ constexpr double ToDub (const is_number_v auto something) noexcept
88 {
99 return static_cast <double >(something);
1010 }
11- constexpr float ToFloat (const is_number_v auto something)
11+ constexpr float ToFloat (const is_number_v auto something) noexcept
1212 {
1313 return static_cast <float >(something);
1414 }
15- constexpr int ToInt (const is_number_v auto something)
15+ constexpr int ToInt (const is_number_v auto something) noexcept
1616 {
1717 return static_cast <int >(something);
1818 }
19- constexpr bool IsNormalF (const is_number_v auto val)
19+ constexpr bool IsNormalF (const is_number_v auto val) noexcept
2020 {
2121 return std::isnormal (static_cast <float >(val));
2222 }
You can’t perform that action at this time.
0 commit comments