0
0
Fork 0
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:
Jason Volk 2018-02-21 14:24:01 -08:00
parent a00e305442
commit 268861013e
2 changed files with 14 additions and 3 deletions

View file

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

View file

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