From 1244953d437f8d0e4adc89fe4e887189961f9841 Mon Sep 17 00:00:00 2001 From: "Stephan T. Lavavej" Date: Sat, 7 Mar 2026 08:42:24 +1100 Subject: Improve compatibility with std::regex implementations. https://github.com/notepad-plus-plus/notepad-plus-plus/pull/17816 --- doc/ScintillaHistory.html | 2 ++ src/Document.cxx | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 26333e1be..c1a77ed67 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -593,6 +593,8 @@ Sven Ritter Stefan Löffler Nathaniel Braun + + Stephan T. Lavavej

Releases

diff --git a/src/Document.cxx b/src/Document.cxx index 458c1e93f..4fb266730 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -3141,7 +3141,9 @@ public: const Document *doc; Sci::Position position; - explicit ByteIterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : + ByteIterator() noexcept : + ByteIterator(nullptr) {} + explicit ByteIterator(const Document *doc_, Sci::Position position_=0) noexcept : doc(doc_), position(position_) { } char operator*() const noexcept { @@ -3206,7 +3208,9 @@ public: using pointer = wchar_t*; using reference = wchar_t&; - explicit UTF8Iterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : + UTF8Iterator() noexcept : + UTF8Iterator(nullptr) {} + explicit UTF8Iterator(const Document *doc_, Sci::Position position_=0) noexcept : doc(doc_), position(position_) { if (doc) { ReadCharacter(); @@ -3295,7 +3299,9 @@ public: using pointer = wchar_t*; using reference = wchar_t&; - explicit UTF8Iterator(const Document *doc_=nullptr, Sci::Position position_=0) noexcept : + UTF8Iterator() noexcept : + UTF8Iterator(nullptr) {} + explicit UTF8Iterator(const Document *doc_, Sci::Position position_=0) noexcept : doc(doc_), position(position_) { } wchar_t operator*() const noexcept { -- cgit v1.2.3