From 5e8a0c014e99d69d4a64e91f50a006147c47cc80 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Sun, 27 Jun 2021 20:05:36 -0600 Subject: [PATCH] LibRegex: Make regex::Regex move-constructible and move-assignable For some reason the default move constructor and default move-assign operator were deleted, so we explicitly default them instead. --- Userland/Libraries/LibRegex/RegexMatcher.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Libraries/LibRegex/RegexMatcher.h b/Userland/Libraries/LibRegex/RegexMatcher.h index 4be02b2ec1..5e3c63cf2c 100644 --- a/Userland/Libraries/LibRegex/RegexMatcher.h +++ b/Userland/Libraries/LibRegex/RegexMatcher.h @@ -77,6 +77,8 @@ public: explicit Regex(StringView pattern, typename ParserTraits::OptionsType regex_options = {}); ~Regex() = default; + Regex(Regex&&) = default; + Regex& operator=(Regex&&) = default; typename ParserTraits::OptionsType options() const; void print_bytecode(FILE* f = stdout) const;