Skip to content

Use aliasing shared pointers instead of extra lifetime object#2690

Open
RobinTF wants to merge 3 commits intoad-freiburg:masterfrom
RobinTF:lifetime-suggestion
Open

Use aliasing shared pointers instead of extra lifetime object#2690
RobinTF wants to merge 3 commits intoad-freiburg:masterfrom
RobinTF:lifetime-suggestion

Conversation

@RobinTF
Copy link
Collaborator

@RobinTF RobinTF commented Feb 2, 2026

This PR was originally a suggestion for #2684.
Instead of passing along a vector that makes sure the lifetime of the result objects is extended long enough, we use aliasing shared pointers to achieve the same thing within a single object.

@RobinTF RobinTF requested review from hannahbast and joka921 February 2, 2026 09:56
Comment on lines +388 to +389
lazyResult =
std::move(lazyResult)](auto& idTableVocabPair) mutable {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I added the lazyResult, because otherwise this result would also go out of scope. Not sure what the consequences would be but just to be safe.

@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.59%. Comparing base (cca3768) to head (3ed553e).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2690      +/-   ##
==========================================
- Coverage   91.60%   91.59%   -0.01%     
==========================================
  Files         483      483              
  Lines       41360    41358       -2     
  Branches     5493     5492       -1     
==========================================
- Hits        37886    37881       -5     
- Misses       1897     1899       +2     
- Partials     1577     1578       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

@sparql-conformance
Copy link

Overview

Number of Tests Passed ✅ Intended ✅ Failed ❌ Not tested
547 449 73 25 0

Conformance check failed ❌

Test Status Changes 📊

Number of Tests Previous Status Current Status
1 Passed Failed

Details: https://qlever.dev/sparql-conformance-ui?cur=3ed553e58a92cd6582d63e34bde35f082cacbd78&prev=cca37689eb8be289bc51bcb675030d05dd10f671

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 3, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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