Skip to content

Commit 0a29ceb

Browse files
committed
enable fortran formatted reals
1 parent f073483 commit 0a29ceb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/tools/disco/Real.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ class Real : public BaseFixedWidthField< Width > {
5454
// we are using fast_float::from_chars instead of std::from_chars since
5555
// not all standard c++ libraries implement the floating point version of
5656
// std::from_chars
57-
auto result = fast_float::from_chars( &*iter, &*end, value );
57+
fast_float::parse_options options{ fast_float::chars_format::fortran };
58+
auto result = fast_float::from_chars_advanced( &*iter, &*end, value, options );
5859
if ( result.ec == std::errc() ) {
5960

6061
auto advance = result.ptr - &*iter;

0 commit comments

Comments
 (0)