From c1c3b01a6cc38230007d83053ad52bb1d9cc7f8d Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 13 Apr 2025 18:25:46 +0200 Subject: [PATCH] LibRegex: Allow Vector to use trivial memcpy Now that Match has no more members that need destruction, we can allow Vector to memcpy them around. --- Libraries/LibRegex/RegexMatch.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Libraries/LibRegex/RegexMatch.h b/Libraries/LibRegex/RegexMatch.h index d39c7e3915d..b0379598e3b 100644 --- a/Libraries/LibRegex/RegexMatch.h +++ b/Libraries/LibRegex/RegexMatch.h @@ -594,3 +594,8 @@ struct AK::Formatter : Formatter { return Formatter::format(builder, string); } }; + +template<> +struct AK::Traits : public AK::DefaultTraits { + constexpr static bool is_trivial() { return true; } +};