mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
ircd::json: Add these for consistency.
This commit is contained in:
parent
a00e305442
commit
268861013e
2 changed files with 14 additions and 3 deletions
|
@ -71,6 +71,7 @@ namespace ircd
|
|||
using json::defined;
|
||||
using json::for_each;
|
||||
using json::until;
|
||||
using json::get;
|
||||
}
|
||||
|
||||
/// Strong type representing quoted strings in JSON (which may be unquoted
|
||||
|
|
|
@ -352,7 +352,12 @@ get(const tuple &t)
|
|||
indexof<tuple, hash>()
|
||||
};
|
||||
|
||||
return val<idx>(t);
|
||||
const auto &ret
|
||||
{
|
||||
val<idx>(t)
|
||||
};
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
template<size_t hash,
|
||||
|
@ -387,7 +392,12 @@ get(tuple &t)
|
|||
indexof<tuple, hash>()
|
||||
};
|
||||
|
||||
return val<idx>(t);
|
||||
auto &ret
|
||||
{
|
||||
val<idx>(t)
|
||||
};
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
template<size_t hash,
|
||||
|
@ -412,7 +422,7 @@ at(const tuple &t)
|
|||
indexof<tuple, hash>()
|
||||
};
|
||||
|
||||
auto &ret
|
||||
const auto &ret
|
||||
{
|
||||
val<idx>(t)
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue