[build] missing include

pull/1265/head
Tim Stack 1 month ago
parent 46b2a9f1ee
commit 11c9952e03

@ -33,6 +33,7 @@
#define PCRE2_CODE_UNIT_WIDTH 8 #define PCRE2_CODE_UNIT_WIDTH 8
#include <memory> #include <memory>
#include <optional>
#include <string> #include <string>
#include <vector> #include <vector>
@ -143,13 +144,12 @@ public:
std::optional<found> ignore_error() std::optional<found> ignore_error()
{ {
return this->match( return this->match([](found fo) { return std::make_optional(fo); },
[](found fo) { return std::make_optional(fo); }, [](not_found) { return std::nullopt; },
[](not_found) { return std::nullopt; }, [](error err) {
[](error err) { handle_error(err);
handle_error(err); return std::nullopt;
return std::nullopt; });
});
} }
private: private:

Loading…
Cancel
Save