mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-03 15:16:14 +00:00
AK: Restrict template parameter of JsonArray constructor
This constructor doesn't need to accept iterable containers of anything other than `JsonValue`s.
This commit is contained in:
committed by
Sam Atkins
parent
a4f23c512c
commit
e2b69fe7e2
@@ -37,7 +37,7 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
template<IterableContainer ContainerT>
|
template<IterableContainerOf<JsonValue> ContainerT>
|
||||||
JsonArray(ContainerT const& source)
|
JsonArray(ContainerT const& source)
|
||||||
{
|
{
|
||||||
for (auto& value : source)
|
for (auto& value : source)
|
||||||
|
|||||||
Reference in New Issue
Block a user