diff options
author | clyne <clyne@bitgloo.com> | 2021-01-05 19:14:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 19:14:16 -0500 |
commit | 6a5265be03640928f42e62c936cfb66fd3f0ea3a (patch) | |
tree | 79ceceda4fed1bb7580f35a7dbf2215534f5960e | |
parent | af776afb2ef0d58ba3c939e7cacbfe3dea633555 (diff) |
Fixed end() for wide strings
-rw-r--r-- | ini_config.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ini_config.hpp b/ini_config.hpp index 89de474..b6af299 100644 --- a/ini_config.hpp +++ b/ini_config.hpp @@ -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. |