Skip to content

Commit

Permalink
Don't define push and pop methods for tFlow
Browse files Browse the repository at this point in the history
It's a trivially copyable type, it will get serialized via default
means implemented in stream.h
  • Loading branch information
ol-imorozko committed Oct 21, 2024
1 parent 62c9ac7 commit 4896912
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions common/type.h
Original file line number Diff line number Diff line change
Expand Up @@ -2237,16 +2237,6 @@ class tFlow
return data.atomic;
}

void pop(stream_in_t& stream)
{
stream.pop(reinterpret_cast<uint8_t(&)[sizeof(*this)]>(*this));
}

void push(stream_out_t& stream) const
{
stream.push(reinterpret_cast<const uint8_t(&)[sizeof(*this)]>(*this));
}

[[nodiscard]] std::string to_string() const
{
std::ostringstream oss;
Expand Down

0 comments on commit 4896912

Please sign in to comment.