add noexcept tests

This commit is contained in:
Théo DELRIEU committed 2017-01-21 16:14:22 +01:00
1 parent af94e712c7
commit b56117b148
3 files changed
+7 -2

No files matched your search

+1 -1
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);
}
+1 -1
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);
}