Skip to content

Commit 916b23e

Browse files
committed
Fix: Missing sized_match_t constructor
1 parent 46b7135 commit 916b23e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/stringzilla/stringzilla.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2309,6 +2309,9 @@ class basic_string_slice {
23092309
size_type offset {};
23102310
size_type length {};
23112311

2312+
sized_match_t() noexcept = default;
2313+
sized_match_t(size_type o, size_type l) noexcept : offset(o), length(l) {}
2314+
23122315
operator bool() const noexcept { return offset != npos; }
23132316
bool operator==(sized_match_t const &other) const noexcept {
23142317
return offset == other.offset && length == other.length;

0 commit comments

Comments
 (0)