Skip to content

Conversation

@phlptp
Copy link
Collaborator

@phlptp phlptp commented Nov 14, 2025

Address issue #1254

@codecov
Copy link

codecov bot commented Nov 14, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (e4ee3af) to head (b973307).
⚠️ Report is 148 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##              main     #1255     +/-   ##
===========================================
  Coverage   100.00%   100.00%             
===========================================
  Files           17        19      +2     
  Lines         4546      5039    +493     
  Branches         0      1077   +1077     
===========================================
+ Hits          4546      5039    +493     

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

@phlptp phlptp force-pushed the module_testing branch 2 times, most recently from abe3b74 to 54b4414 Compare November 20, 2025 03:01
set(CMAKE_PREFIX_PATH ${CLI11_DIR})
endif()

set(CMAKE_CXX_STANDARD 23)
Copy link
Collaborator

Choose a reason for hiding this comment

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

This could be 20 as well?

/// a constant defining an expected max vector size defined to be a big number that could be multiplied by 4 and not
/// produce overflow for some expected uses
constexpr int expected_max_vector_size{1 << 29};
CLI11_MODULE_INLINE constexpr int expected_max_vector_size{1 << 29};
Copy link
Collaborator

Choose a reason for hiding this comment

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

By the way, can we not have inline here all the time?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

inline constexpr variables are only available in C++17, so putting inline here doesn't compile on on C++11

Copy link
Collaborator

Choose a reason for hiding this comment

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

But could it be based on C++ level, then? It would be nice not to have more config options if possible.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

seems to work if I condition on C++17 and have it be inline or static, will go with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants