From 6a5265be03640928f42e62c936cfb66fd3f0ea3a Mon Sep 17 00:00:00 2001 From: clyne Date: Tue, 5 Jan 2021 19:14:16 -0500 Subject: [PATCH] Fixed end() for wide strings --- ini_config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.