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][feat] support c++17 #392

Merged
merged 64 commits into from
Aug 2, 2023

Conversation

poor-circle
Copy link
Collaborator

Why

Closes #388

What is changing

Now struct_pack support c++17.

Api break changes: remove struct_pack::serialize_config class and use an uint64_t to instead it, because c++17 don't support struct as non-type template parameter.

In C++17 we don't support user defined continous container, so only std::vector/std::basic_string/std::basic_string_view could enable continous container copy optimize (memcpy).

Example

@poor-circle poor-circle force-pushed the struct_pack_support_stdcpp17 branch 4 times, most recently from 79e6e5f to caab629 Compare August 1, 2023 11:23
@poor-circle poor-circle merged commit 23d62e7 into alibaba:main Aug 2, 2023
28 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.

[struct_pack][feat] support c++17
1 participant