Fixed end() for wide strings

This commit is contained in:
Clyne 2021-01-05 19:14:16 -05:00 committed by GitHub
parent af776afb2e
commit 6a5265be03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -292,7 +292,7 @@ public:
return end();
}
constexpr auto end() const noexcept {
return iterator(kvp_buffer + sizeof(kvp_buffer) - 1);
return iterator(kvp_buffer + sizeof(kvp_buffer) / sizeof(char_type) - 1);
}
/**
* Returns end iterator for the given section.