0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 23:40:57 +01:00

ircd::db: Simplify row columns from tuple transform.

This commit is contained in:
Jason Volk 2018-05-12 18:37:28 -07:00
parent 52976d3faf
commit 58ffceec4c

View file

@ -111,8 +111,7 @@ ircd::db::row::row(database &d,
:row{[&d, &key, &t, &buf, &opts]
() -> row
{
std::array<string_view, t.size()> cols;
json::_key_transform(t, std::begin(cols), std::end(cols));
static const typename json::tuple<T...>::keys cols;
return { d, key, cols, buf, opts };
}()}
{