We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1703e33 commit 29cfb5aCopy full SHA for 29cfb5a
1 file changed
common/estring.h
@@ -87,8 +87,8 @@ class estring_view : public std::string_view
87
bool _ownership;
88
public:
89
Extraction(std::string_view sv, bool strict = false) {
90
- //for regular strings, sv[sv.size()] should be accessible
91
- if (!strict && sv[sv.size()] == '\0') {
+ //for regular strings, sv.data()[sv.size()] should be accessible
+ if (!strict && sv.data()[sv.size()] == '\0') {
92
_s.reset((char*)sv.data());
93
_ownership = false;
94
} else if (sv.size() < N) {
0 commit comments