aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclyne <clyne@bitgloo.com>2021-01-05 19:14:16 -0500
committerGitHub <noreply@github.com>2021-01-05 19:14:16 -0500
commit6a5265be03640928f42e62c936cfb66fd3f0ea3a (patch)
tree79ceceda4fed1bb7580f35a7dbf2215534f5960e
parentaf776afb2ef0d58ba3c939e7cacbfe3dea633555 (diff)
Fixed end() for wide strings
-rw-r--r--ini_config.hpp2
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.