mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::json: Use vector_view for keys selectors.
This commit is contained in:
parent
64170b6fef
commit
2991144b38
1 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ template<class tuple>
|
|||
struct ircd::json::keys<tuple>::include
|
||||
:selection
|
||||
{
|
||||
include(const std::initializer_list<string_view> &list)
|
||||
include(const vector_view<const string_view> &list)
|
||||
{
|
||||
for(const auto &key : list)
|
||||
this->set(indexof<tuple>(key), true);
|
||||
|
@ -79,7 +79,7 @@ template<class tuple>
|
|||
struct ircd::json::keys<tuple>::exclude
|
||||
:selection
|
||||
{
|
||||
exclude(const std::initializer_list<string_view> &list)
|
||||
exclude(const vector_view<const string_view> &list)
|
||||
{
|
||||
this->set();
|
||||
for(const auto &key : list)
|
||||
|
|
Loading…
Reference in a new issue