Skip to content

Commit

Permalink
Update matjson.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
altalk23 authored Nov 21, 2024
1 parent 28887f4 commit c510099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/matjson.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ namespace matjson {
};
template <class T>
concept CanDeserialize = requires(matjson::Value const& value, T t) {
{ Serialize<std::remove_cvref_t<T>>::fromJson(value) };
{ Serialize<std::remove_cvref_t<T>>::fromJson(value) } -> geode::impl::IsResult<>;
};
template <class T>
concept CanSerde = CanSerialize<T> && CanDeserialize<T>;
Expand Down

0 comments on commit c510099

Please sign in to comment.