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

rpc: switch rpc::type from boost to std #2512

Closed
wants to merge 1 commit into from

Conversation

avikivity
Copy link
Member

rpc has a marker type rpc::type which it uses to communicate with the user-provided deserializer. It is currently based on boost::type.

In an ideal universe, switching to the similar std::type_identity would involve only changing the typedef. However, some users pass boost::type directly, so we can't do that without breaking them.

To preserve compatiblity, have all read() calls pass through a helper function that checks which variant is available and calls it. The older one is marked deprecated. With that done, we switch the rpc::type alias to std::type_identity.

rpc has a marker type rpc::type which it uses to communicate with
the user-provided deserializer. It is currently based on boost::type.

In an ideal universe, switching to the similar std::type_identity
would involve only changing the typedef. However, some users
pass boost::type directly, so we can't do that without breaking them.

To preserve compatiblity, have all read() calls pass through a helper
function that checks which variant is available and calls it. The
older one is marked deprecated. With that done, we switch the rpc::type
alias to std::type_identity.
@avikivity
Copy link
Member Author

@xemul please review

@xemul xemul closed this in e8968e5 Oct 29, 2024
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