Skip to content

Commit

Permalink
Restricted concept Serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
brendanlynn committed Jul 17, 2024
1 parent b9822c0 commit 394c013
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Serializable.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace BSerializer {
concept Serializable = requires(const _T Obj_C, _T Obj_V, const void* Data_C, void* Data_V) {
{ Obj_C.SerializedSize() } -> std::same_as<size_t>;
{ Obj_C.Serialize(Data_V) } -> std::same_as<void>;
{ _T::Deserialize(Data_C) } -> std::convertible_to<_T>;
{ _T::Deserialize(Data_C) } -> std::same_as<_T>;
{ _T::Deserialize(Data_C, Obj_V) } -> std::same_as<void>;
};
}

0 comments on commit 394c013

Please sign in to comment.