Fix build with GCC 8.2.0 (#15)

Fix build with GCC 8.2.0

Co-authored-by: Gábor Kozár <kozar@davinciderivatives.com>
This commit is contained in:
Gábor Kozár 2020-03-16 14:45:55 +01:00 committed by GitHub
parent 2ee27d3df7
commit fe0ef67e52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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()
);
}
}

View File

@ -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()
);
}
}