mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +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:
parent
b15fe2b926
commit
5e8a0c014e
Notes:
sideshowbarker
2024-07-18 11:15:14 +09:00
Author: https://github.com/ADKaster
Commit: 5e8a0c014e
Pull-request: https://github.com/SerenityOS/serenity/pull/8283
Reviewed-by: https://github.com/alimpfard
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue