mirror of
https://github.com/matrix-construct/construct
synced 2024-11-27 01:02:46 +01:00
ircd::json:🖨️ Make return an lvalue for leeward access.
This commit is contained in:
parent
cd9faf8c20
commit
53b304cb7a
1 changed files with 12 additions and 2 deletions
14
ircd/json.cc
14
ircd/json.cc
|
@ -484,7 +484,12 @@ const
|
||||||
};
|
};
|
||||||
}};
|
}};
|
||||||
|
|
||||||
return karma::generate(begin(out), gg | eps[throws], std::forward<attr>(a)...);
|
const auto ret
|
||||||
|
{
|
||||||
|
karma::generate(begin(out), gg | eps[throws], std::forward<attr>(a)...)
|
||||||
|
};
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class gen>
|
template<class gen>
|
||||||
|
@ -514,7 +519,12 @@ const
|
||||||
};
|
};
|
||||||
}};
|
}};
|
||||||
|
|
||||||
return karma::generate(begin(out), gg | eps[throws]);
|
const auto ret
|
||||||
|
{
|
||||||
|
karma::generate(begin(out), gg | eps[throws])
|
||||||
|
};
|
||||||
|
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<class it_a,
|
template<class it_a,
|
||||||
|
|
Loading…
Reference in a new issue