1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-12 09:21:42 +03:00

add noexcept tests

This commit is contained in:
Théo DELRIEU
2017-01-16 21:59:47 +01:00
parent af94e712c7
commit b56117b148
3 changed files with 7 additions and 2 deletions

View File

@ -840,7 +840,7 @@ template <typename = void, typename = void>
struct adl_serializer
{
template <typename Json, typename T>
static void from_json(Json&& j, T& val)
static void from_json(Json&& j, T& val) noexcept(noexcept(::nlohmann::from_json(std::forward<Json>(j), val)))
{
::nlohmann::from_json(std::forward<Json>(j), val);
}