add noexcept checks, and some missing noexcepts
This commit is contained in:
parent
1554baa01d
commit
b8012876a5
3 changed files with 31 additions and 2 deletions
|
|
@ -843,9 +843,10 @@ struct adl_serializer
|
|||
}
|
||||
|
||||
template <typename Json, typename T>
|
||||
static void to_json(Json& j, T&& val)
|
||||
static void to_json(Json &j, T &&val) noexcept(
|
||||
noexcept(::nlohmann::to_json(j, std::forward<T>(val))))
|
||||
{
|
||||
::nlohmann::to_json(j, std::forward<T>(val));
|
||||
::nlohmann::to_json(j, std::forward<T>(val));
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue