0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-30 04:38:52 +02:00

ircd::json::tuple: Indicate various closures are noexcept.

This commit is contained in:
Jason Volk 2020-08-04 18:53:18 -07:00
parent 23bfdb070d
commit 153354c63f
2 changed files with 3 additions and 2 deletions

View file

@ -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)>())
{

View file

@ -135,6 +135,7 @@ noexcept
{
until(t, [&name, &ret]
(const auto &key, auto&& val)
noexcept
{
if constexpr(std::is_assignable<R, decltype(val)>())
{