Skip to content

Some modernization of RCSP - #595

Open
andreacassioli wants to merge 6 commits into
boostorg:developfrom
andreacassioli:introduce-auto-using-in-rcsp
Open

andreacassioli wants to merge 6 commits into
boostorg:developfrom
andreacassioli:introduce-auto-using-in-rcsp

Conversation

@andreacassioli

@andreacassioli andreacassioli commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Before submitting

  • This PR targets the develop branch.
  • I searched for an existing PR or issue covering the same change.
  • My contribution is licensed under the Boost Software License 1.0.

Type of change

  • Bug fix
  • New feature or API addition
  • Refactor (no behavior change)
  • Documentation
  • Build, CI, or tooling
  • Other (specify below)

Does this PR introduce a breaking change?

  • Yes (describe migration impact below)
  • No

What this PR does

  • use auto in few places
  • use using instead of typedefs
  • remove boost macro for pre C++11 code
  • some reformat using clang-format
  • move some variable in more local scope

Motivation

RCSP code needs some work to be modernized and improve its readability. I am working on it a bit at the time.

Testing

Checklist

  • Existing tests pass (b2 in the test/ directory).
  • New behavior is covered by a test, or this is a docs / build / refactor change.
  • Documentation was updated if user-facing behavior changed.
  • No new compiler warnings on the platforms I built against.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Boost dependency footprint vs develop (auto-generated).
PR run 35117531918 vs develop run 34202177085 (3023fd65fe).

Header-inclusion weights (graph files pulling each direct dependency in):

No header-inclusion-weight changes.

Transitive Boost modules: 47 → 47 (0)

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown

Compiler-warning counts vs develop (auto-generated).
PR run 35117531889 vs develop run 34202176762 (3023fd65fe).

Job Baseline After Delta
macos (clang, 14) 444 392 -52
macos (clang, 17) 407 391 -16
macos (clang, 20) 407 391 -16
ubuntu (clang-19, 14) 444 392 -52
ubuntu (clang-19, 17) 407 391 -16
ubuntu (clang-19, 20) 407 391 -16
ubuntu (clang-19, 23) 407 391 -16
ubuntu (gcc-14, 14) 373 345 -28
ubuntu (gcc-14, 17) 369 341 -28
ubuntu (gcc-14, 20) 369 341 -28
ubuntu (gcc-14, 23) 369 341 -28
windows_msvc_14_3 (msvc-14.3) 961 961 0

@andreacassioli andreacassioli changed the title Introduce auto using in rcsp Some modernization of RCSP Sep 12, 2026
@andreacassioli
andreacassioli marked this pull request as ready for review September 14, 2026 19:24

@jeremy-murphy jeremy-murphy left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Mostly just a question about one change to the logic.

Comment on lines -367 to -385
vis.on_label_not_feasible(*new_label, g);
if (!b_feasible)
{
vis.on_label_not_feasible(*new_label, g);
new_label.reset();
}
else
{
vis.on_label_feasible(*new_label, g);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Are you sure this doesn't subtly change behaviour?
A different visitor is called in each branch, but you have collapsed it to only calling one.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

FIxed

}
std::list< sp_label_type > dsplabels = get(vec_vertex_labels, t);
if(!b_all_pareto_optimal_solutions)
sp_label_list dsplabels = get(vec_vertex_labels, t);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why not use auto?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

good point, there are some more places where I could use it indeed

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