1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:57:44 +00:00

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.
This commit is contained in:
Andrew Kaster 2021-06-27 20:05:36 -06:00 committed by Ali Mohammad Pur
parent b15fe2b926
commit 5e8a0c014e

View file

@ -77,6 +77,8 @@ public:
explicit Regex(StringView pattern, typename ParserTraits<Parser>::OptionsType regex_options = {});
~Regex() = default;
Regex(Regex&&) = default;
Regex& operator=(Regex&&) = default;
typename ParserTraits<Parser>::OptionsType options() const;
void print_bytecode(FILE* f = stdout) const;