mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 23:40:57 +01:00
ircd::json::tuple: Indicate various closures are noexcept.
This commit is contained in:
parent
23bfdb070d
commit
153354c63f
2 changed files with 3 additions and 2 deletions
|
@ -135,7 +135,7 @@ at(const tuple &t,
|
|||
const R *ret;
|
||||
const auto closure
|
||||
{
|
||||
[&name, &ret](const auto &key, const auto &val)
|
||||
[&name, &ret](const auto &key, const auto &val) noexcept
|
||||
{
|
||||
if constexpr(std::is_assignable<R, decltype(val)>())
|
||||
{
|
||||
|
@ -168,7 +168,7 @@ at(tuple &t,
|
|||
R *ret;
|
||||
const auto closure
|
||||
{
|
||||
[&name, &ret](const auto &key, auto &val)
|
||||
[&name, &ret](const auto &key, auto &val) noexcept
|
||||
{
|
||||
if constexpr(std::is_assignable<R, decltype(val)>())
|
||||
{
|
||||
|
|
|
@ -135,6 +135,7 @@ noexcept
|
|||
{
|
||||
until(t, [&name, &ret]
|
||||
(const auto &key, auto&& val)
|
||||
noexcept
|
||||
{
|
||||
if constexpr(std::is_assignable<R, decltype(val)>())
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue