Skip to content

Commit 29cfb5a

Browse files
committed
fix estring in GCC15
1 parent 1703e33 commit 29cfb5a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

common/estring.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ class estring_view : public std::string_view
8787
bool _ownership;
8888
public:
8989
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') {
90+
//for regular strings, sv.data()[sv.size()] should be accessible
91+
if (!strict && sv.data()[sv.size()] == '\0') {
9292
_s.reset((char*)sv.data());
9393
_ownership = false;
9494
} else if (sv.size() < N) {

0 commit comments

Comments
 (0)