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

Replace Ice::optional and IceUtil::Optional by std::optional #1641

Merged
merged 1 commit into from
Jan 9, 2024

Conversation

bernardnormier
Copy link
Member

@bernardnormier bernardnormier commented Jan 8, 2024

This PR replaces both Ice::optional and IceUtil::Optional by std::optional, while providing aliases for backwards source compatibility.

I believe the only source-incompatible change is the old IceUtil::Optional provides get() as an alias for value():

https://doc.zeroc.com/ice/3.7/language-mappings/c++98-mapping/client-side-slice-to-c++98-mapping/c++98-mapping-for-optional-values

https://doc.zeroc.com/api/ice/3.7/cpp98/classIceUtil_1_1Optional.html

Note: this PR does not replace all Ice::optional / IceUtil::Optional by std::optional, to show that existing code using these names would not be affected. A follow-up cleanup PR should make this global replace.

@bernardnormier bernardnormier merged commit 3908a5d into zeroc-ice:main Jan 9, 2024
2 checks passed
@bernardnormier bernardnormier deleted the cpp-optional branch May 10, 2024 23:40
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.

3 participants