Skip to content

Fix compilation with C++23 language standard#1043

Draft
kelson42 wants to merge 1 commit intomainfrom
cpp-23-compatibility
Draft

Fix compilation with C++23 language standard#1043
kelson42 wants to merge 1 commit intomainfrom
cpp-23-compatibility

Conversation

@kelson42
Copy link
Contributor

Small syntax improvement, to prepare the future

@kelson42 kelson42 added this to the 9.6.0 milestone Feb 11, 2026
@codecov
Copy link

codecov bot commented Feb 11, 2026

Codecov Report

❌ Patch coverage is 0% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 56.25%. Comparing base (f8cc2cb) to head (755234d).

Files with missing lines Patch % Lines
src/fileimpl.cpp 0.00% 0 Missing and 1 partial ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (90.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1043   +/-   ##
=======================================
  Coverage   56.25%   56.25%           
=======================================
  Files         101      101           
  Lines        5016     5016           
  Branches     2185     2185           
=======================================
  Hits         2822     2822           
  Misses        738      738           
  Partials     1456     1456           

☔ 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.

@kelson42 kelson42 marked this pull request as draft February 11, 2026 10:32
Copy link
Collaborator

@veloman-yunkan veloman-yunkan left a comment

Choose a reason for hiding this comment

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

Line 176 in src/writer/cluster.cpp will lead to a similar compilation error when using C++23.

auto cluster_index_type = idx.v;
auto key = std::make_tuple(this, cluster_index_type);
auto cluster = getClusterCache().getOrPut(key, [=](){ return readCluster(idx); });
auto cluster = getClusterCache().getOrPut(key, [=, this](){ return readCluster(idx); });
Copy link
Collaborator

Choose a reason for hiding this comment

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

Some compilers don't like this (pun intended). Try [this, idx]() ... instead.

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