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

Removing use of boost::variant and optional from stlab now that it has moved to C++17 #531

Merged
merged 4 commits into from
Oct 25, 2023

Conversation

thinlang
Copy link
Contributor

No description provided.

Copy link
Member

@sean-parent sean-parent left a comment

Choose a reason for hiding this comment

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

Two minor changes were requested in the comments.

@@ -150,7 +150,7 @@ string(const char * initial_value) {

How can we work with the cases in the above example? We obviously can't use the empty constructor and we can't use the other constructor as we don't want to waste that memory.

This is where optional shines. It is shipping as standard in C++17 but is also available as `boost::optional`.
This is where optional shines. It is shipping as standard in C++17 but is also available as `std::optional`.
Copy link
Member

Choose a reason for hiding this comment

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

This is from a blog post - it should remain boost::optional.

Copy link
Member

@sean-parent sean-parent left a comment

Choose a reason for hiding this comment

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

LGTM

@sean-parent sean-parent merged commit 12fc5a5 into stlab:main Oct 25, 2023
6 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.

2 participants