diff --git a/src/pcrepp/pcre2pp.hh b/src/pcrepp/pcre2pp.hh index 8c224ae9..9afa1a36 100644 --- a/src/pcrepp/pcre2pp.hh +++ b/src/pcrepp/pcre2pp.hh @@ -33,6 +33,7 @@ #define PCRE2_CODE_UNIT_WIDTH 8 #include +#include #include #include @@ -143,13 +144,12 @@ public: std::optional ignore_error() { - return this->match( - [](found fo) { return std::make_optional(fo); }, - [](not_found) { return std::nullopt; }, - [](error err) { - handle_error(err); - return std::nullopt; - }); + return this->match([](found fo) { return std::make_optional(fo); }, + [](not_found) { return std::nullopt; }, + [](error err) { + handle_error(err); + return std::nullopt; + }); } private: