Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
edgchen1 committed Jan 30, 2025
1 parent 41bd59c commit 8ec8c05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/onnxruntime/core/common/parse_string.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ namespace detail {
// Whether we will use std::from_chars() to parse to `T`.
#if defined(__ANDROID__)
// Note: As of Android NDK r27c, std::from_chars() doesn't support floating point types.
template<typename T>
template <typename T>
constexpr bool ParseWithFromChars = !std::is_same_v<bool, T> && std::is_integral_v<T>;
#else
template <typename T>
constexpr bool ParseWithFromChars = !std::is_same_v<bool, T> && (std::is_integral_v<T> || std::is_floating_point_v<T>);
#endif

}
} // namespace detail

/**
* Tries to parse a value from an entire string.
Expand Down

0 comments on commit 8ec8c05

Please sign in to comment.