0
0
Fork 0
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:
Jason Volk 2018-05-19 19:17:07 -07:00
parent 64170b6fef
commit 2991144b38

View file

@ -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)