Skip to content

Commit

Permalink
🧹 utils: modernize floating point typetrait
Browse files Browse the repository at this point in the history
  • Loading branch information
vnepogodin committed Jul 2, 2024
1 parent f384932 commit 7bcd6bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ inline T to_int(const std::string_view& str) {
}

template <typename T = double>
requires std::is_floating_point<T>::value
requires std::is_floating_point_v<T>
inline T to_floating(const std::string_view& str) {
T result = 0;
std::from_chars(str.data(), str.data() + str.size(), result);
Expand Down

0 comments on commit 7bcd6bb

Please sign in to comment.