Skip to content

Experiment with C++17 #2488

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

Experiment with C++17 #2488

wants to merge 1 commit into from

Conversation

gaul
Copy link
Member

@gaul gaul commented Jul 4, 2024

Most of these features should work now that we dropped CentOS 7 support.

@gaul gaul force-pushed the c++17 branch 3 times, most recently from 7035c1b to b537889 Compare July 4, 2024 18:31
@gaul
Copy link
Member Author

gaul commented Jul 5, 2024

It appears that all the CI targets support C++17. So we should consider using these features after releasing 1.95.

@@ -229,12 +230,13 @@ static unique_ptr_xmlChar get_exp_value_xml(xmlDocPtr doc, xmlXPathContextPtr ct
return exp_value;
}

bool get_incomp_mpu_list(xmlDocPtr doc, incomp_mpu_list_t& list)
std::optional<incomp_mpu_list_t> get_incomp_mpu_list(xmlDocPtr doc)
Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think C++17 has major advancements compared to C++11 but std::optional will make error checking more obvious and safer. These kinds of little enhancements must wait until after we release 1.95 in #2496.

Most of these features should work now that we dropped CentOS 7
support.
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.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy