Skip to content

Commit

Permalink
Fix MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
braxtons12 committed Sep 21, 2024
1 parent 8941276 commit c579537
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/hyperion/platform/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,11 @@ namespace hyperion {
if(!is_hex && !is_binary) {
constexpr auto trimmed = trim_separators(string_literal<Chars...>{});
Type res = 0;
auto result = fast_float::from_chars(trimmed.begin(), trimmed.end(), res);
auto result = fast_float::from_chars(
&(trimmed[0]),
&(trimmed[0]) + trimmed.size(),
res
);
if(result.ptr != trimmed.end()) {
if(result.ec == std::errc::invalid_argument) {
return {.status = literal_status::InvalidCharacterSequence};
Expand Down

0 comments on commit c579537

Please sign in to comment.