1
0
mirror of https://github.com/nlohmann/json synced 2024-11-22 12:00:05 +00:00

try to replace std::ptrdiff_t with auto (for #204)

This commit is contained in:
Niels 2016-02-10 21:19:31 +01:00
parent 4cc4b26dd2
commit a831c787df
2 changed files with 6 additions and 6 deletions

View File

@ -7970,9 +7970,9 @@ basic_json_parser_63:
return;
}
const std::ptrdiff_t offset_start = m_start - m_content;
const std::ptrdiff_t offset_marker = m_marker - m_start;
const std::ptrdiff_t offset_cursor = m_cursor - m_start;
const auto offset_start = m_start - m_content;
const auto offset_marker = m_marker - m_start;
const auto offset_cursor = m_cursor - m_start;
m_buffer.erase(0, static_cast<size_t>(offset_start));
std::string line;

View File

@ -7280,9 +7280,9 @@ class basic_json
return;
}
const std::ptrdiff_t offset_start = m_start - m_content;
const std::ptrdiff_t offset_marker = m_marker - m_start;
const std::ptrdiff_t offset_cursor = m_cursor - m_start;
const auto offset_start = m_start - m_content;
const auto offset_marker = m_marker - m_start;
const auto offset_cursor = m_cursor - m_start;
m_buffer.erase(0, static_cast<size_t>(offset_start));
std::string line;