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

Add encode/decode option for shared pointer of State #287

Merged
merged 7 commits into from
Apr 19, 2022

Conversation

domire8
Copy link
Contributor

@domire8 domire8 commented Apr 13, 2022

Here I add a feature that is required the modulo component refactor. It's three big switch cases to decode and encode shared pointers of State via pointer injection and dynamic cast.

The number of deletions are quite high because templated the tests quite a lot.

What I'm not sure is if I have to do something in python too or not. I guess not because all variables are already pointers in python?

@domire8 domire8 requested review from buschbapti and eeberhard April 13, 2022 09:09
@domire8 domire8 force-pushed the feature/clproto-state-ptr branch from 8cd9769 to 4661e77 Compare April 19, 2022 07:20
eeberhard
eeberhard previously approved these changes Apr 19, 2022
Copy link
Member

@eeberhard eeberhard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! It's a useful addition now that StateType is comprehensive.

protocol/clproto_cpp/src/clproto.cpp Outdated Show resolved Hide resolved
eeberhard
eeberhard previously approved these changes Apr 19, 2022
@domire8 domire8 merged commit 1b383c8 into develop Apr 19, 2022
@domire8 domire8 deleted the feature/clproto-state-ptr branch April 19, 2022 09:29
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.

2 participants