]> code.bitgloo.com Git - clyne/ini-config.git/commitdiff
Fixed end() for wide strings
authorclyne <clyne@bitgloo.com>
Wed, 6 Jan 2021 00:14:16 +0000 (19:14 -0500)
committerGitHub <noreply@github.com>
Wed, 6 Jan 2021 00:14:16 +0000 (19:14 -0500)
ini_config.hpp

index 89de474b3030cceda376ef49dd2300e851619024..b6af2993b478787737605b1c6967fa9d5818f1f1 100644 (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.