Merged
Conversation
a8ccbd2 to
569de89
Compare
Member
Author
|
No changes to the generated HTML except as noted in one commit: |
569de89 to
3653804
Compare
tomaszkam
reviewed
Dec 12, 2025
tomaszkam
reviewed
Dec 12, 2025
| out << "<p>" << build_timestamp << "</p>"; | ||
|
|
||
| for (auto i = issues.cbegin(), e = issues.cend(); i != e;) { | ||
| for (auto i = issues.begin(), e = issues.end(); i != e;) { |
There was a problem hiding this comment.
Maybe use chunk_by(issues, [](const issue& lhs, const& issue rhs) { return lhs.stat != rhs.stat; }); if we can depend on that.
Member
Author
There was a problem hiding this comment.
The code is compiled with -std=c++20 currently. We could change that, if everybody working with the issues has a compiler that can handle C++23.
tomaszkam
reviewed
Dec 12, 2025
tomaszkam
reviewed
Dec 12, 2025
| out << "<h2 id=\"" << idattr << "\">" << current_status << " (" << (j-i) << " issues)</h2>\n"; | ||
| print_table(out, {i, j}, section_db); | ||
| i = j; | ||
| while (!issues.empty()) |
tomaszkam
approved these changes
Dec 12, 2025
tomaszkam
left a comment
There was a problem hiding this comment.
LGTM. I have noted a few places where you could improve by using chunk_by.
Also replace some loops with range-based for.
Common impl for make_sort_by_status and make_sort_by_status_mod_date. This changes the generated HTML slightly, because it means that the lwg-status.html, unresolved-status.html, and voting-status.html pages now have OpenGraph metadata: --- mailing.orig/lwg-status.html 2025-12-10 23:22:08.142390521 +0000 +++ mailing.good/lwg-status.html 2025-12-11 11:57:02.753796799 +0000 @@ -3,6 +3,12 @@ <head> <meta charset="utf-8"> <title>LWG Index by Status and Section</title> +<meta property="og:title" content="LWG Index by Status and Section"> +<meta property="og:description" content="C++ standard library issues list"> +<meta property="og:url" content="https://cplusplus.github.io/LWG/lwg-status.html"> +<meta property="og:type" content="website"> +<meta property="og:image" content="http://cplusplus.github.io/LWG/images/cpp_logo.png"> +<meta property="og:image:alt" content="C++ logo"> <style> p {text-align:justify} li {text-align:justify} This seems like a good change. It makes those pages consistent with the equivalent *-status-date.html pages. The *-status-date.html pages get an extra blank line in the HTML as well, because all those *-status*.html pages are generated by the same function now.
…jections Ranges algos can just use a pointer-to-member projection instead.
Also remove outdated comment and alternative code that is no simpler.
3653804 to
6ccf1d9
Compare
jwakely
added a commit
to jwakely/LWG
that referenced
this pull request
Dec 12, 2025
As suggested by Tomasz in cplusplus#533 Use a helper function for C++20.
jwakely
added a commit
to jwakely/LWG
that referenced
this pull request
Dec 12, 2025
As suggested by Tomasz in cplusplus#533 Use a helper function for C++20.
jwakely
added a commit
to jwakely/LWG
that referenced
this pull request
Dec 12, 2025
As suggested by Tomasz in cplusplus#533 Use a helper function for C++20.
jwakely
added a commit
to jwakely/LWG
that referenced
this pull request
Dec 12, 2025
As suggested by Tomasz in cplusplus#533 Use a helper function for C++20.
jwakely
added a commit
to jwakely/LWG
that referenced
this pull request
Dec 12, 2025
As suggested by Tomasz in cplusplus#533 Use a helper function for C++20.
jwakely
added a commit
that referenced
this pull request
Dec 13, 2025
As suggested by Tomasz in #533 Use a helper function for C++20.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A series of changes to make more use of modern C++20 features.
Several functions can be made more generic by using
std::spaninstead of passing references tostd::vector.Some loops are changed to loop over a span and remove the prefix that has been processed.
Using projections with ranges algos simplifies several places.