0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02: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{[&d, &key, &t, &buf, &opts]
() -> row () -> row
{ {
std::array<string_view, t.size()> cols; static const typename json::tuple<T...>::keys cols;
json::_key_transform(t, std::begin(cols), std::end(cols));
return { d, key, cols, buf, opts }; return { d, key, cols, buf, opts };
}()} }()}
{ {