Fixed end() for wide strings

master
Clyne 4 years ago committed by GitHub
parent af776afb2e
commit 6a5265be03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -292,7 +292,7 @@ public:
return end(); return end();
} }
constexpr auto end() const noexcept { 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. * Returns end iterator for the given section.

Loading…
Cancel
Save