Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[struct_pack] remove concept of trivial_class_t/non_trivial_class_t #461

Merged
merged 2 commits into from
Sep 19, 2023

Conversation

poor-circle
Copy link
Collaborator

@poor-circle poor-circle commented Sep 19, 2023

Why

They are outdated after we add layout info to trivial serialized type.

What is changing

remove concept of trivial_class_t/non_trivial_class_t

Example

This code is legal now.

struct person {
  int age;
  std::string name;
};
auto buffer = struct_pack::serialize(24, "Student"s);
struct_pack::deserialize<person>(buffer);

@poor-circle poor-circle merged commit 97b98d7 into alibaba:main Sep 19, 2023
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant