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:
parent
52976d3faf
commit
58ffceec4c
1 changed files with 1 additions and 2 deletions
|
@ -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 };
|
||||
}()}
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue