fix compilation: add a return in constexpr functions

This commit is contained in:
Théo DELRIEU 2016-11-10 11:28:29 +01:00 committed by Theo
parent 75a9cf116e
commit 88f7eb63d9

View File

@ -145,7 +145,7 @@ struct to_json_fn
operator()(Json&& j, T &&val) const noexcept(noexcept(to_json(std::forward<Json>(j), std::forward<T>(val))))
-> decltype(to_json(std::forward<Json>(j), std::forward<T>(val)), void())
{
to_json(std::forward<Json>(j), std::forward<T>(val));
return to_json(std::forward<Json>(j), std::forward<T>(val));
}
};
@ -156,7 +156,7 @@ struct from_json_fn
noexcept(noexcept(from_json(std::forward<Json>(j), val)))
-> decltype(from_json(std::forward<Json>(j), val), void())
{
from_json(std::forward<Json>(j), val);
return from_json(std::forward<Json>(j), val);
}
};