Skip to content

Commit

Permalink
Fix build with GCC 8.2.0 (#15)
Browse files Browse the repository at this point in the history
Fix build with GCC 8.2.0

Co-authored-by: Gábor Kozár <[email protected]>
  • Loading branch information
shdnx and Gábor Kozár authored Mar 16, 2020
1 parent 2ee27d3 commit fe0ef67
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/toml++/toml_parser_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ TOML_IMPL_START
recording_buffer.clear();
else
recording_buffer.erase(
recording_buffer.cbegin() + static_cast<ptrdiff_t>(recording_buffer.length() - pop_bytes),
recording_buffer.cend()
recording_buffer.begin() + static_cast<ptrdiff_t>(recording_buffer.length() - pop_bytes),
recording_buffer.end()
);
}
}
Expand Down
4 changes: 2 additions & 2 deletions toml.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6374,8 +6374,8 @@ TOML_IMPL_START
recording_buffer.clear();
else
recording_buffer.erase(
recording_buffer.cbegin() + static_cast<ptrdiff_t>(recording_buffer.length() - pop_bytes),
recording_buffer.cend()
recording_buffer.begin() + static_cast<ptrdiff_t>(recording_buffer.length() - pop_bytes),
recording_buffer.end()
);
}
}
Expand Down

0 comments on commit fe0ef67

Please sign in to comment.