LibJS: Add explicit constructors for PatternPartition

This is to enable emplacing this struct in containers. GCC is fine with
emplacing without this constructor, but Clang raises an error.
This commit is contained in:
Timothy Flynn 2022-01-27 07:12:41 -05:00 committed by Linus Groh
commit 8098eb273a
Notes: sideshowbarker 2024-07-17 20:08:21 +09:00

View file

@ -35,6 +35,14 @@ struct LocaleResult {
};
struct PatternPartition {
PatternPartition() = default;
PatternPartition(StringView type_string, String value_string)
: type(type_string)
, value(move(value_string))
{
}
StringView type;
String value;
};