Skip to content

Avoid static initialisation of C++ objects - #18

Closed
marcosbento wants to merge 2 commits into
developfrom
fix/const_init_status
Closed

marcosbento wants to merge 2 commits into
developfrom
fix/const_init_status

Conversation

@marcosbento

Copy link
Copy Markdown
Collaborator

Description

In order to support the use in C environment, and ensure the finalisation is successful (i.e. all objects are conveniently destroyed) these changes avoid dynamic allocation by using std::array instead of std::vector, and std::string_view instead of std::string.

Contributor Declaration

By opening this pull request, I affirm the following:

  • All authors agree to the Contributor License Agreement.
  • The code follows the project's coding standards.
  • I have performed self-review and added comments where needed.
  • I have added or updated tests to verify that my changes are effective and functional.
  • I have run all existing tests and confirmed they pass.

In order to support the use in C environment, and ensure the
finalisation is successful (i.e. all objects are conveniently destroyed)
these changes avoid dynamic allocation by using std::array instead of
std::vector, and std::string_view instead of std::string.
@marcosbento
marcosbento force-pushed the fix/const_init_status branch from 07b66c4 to e8ddde2 Compare April 21, 2026 14:21
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 21.10%. Comparing base (7a5d612) to head (92f4d45).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop      #18      +/-   ##
===========================================
- Coverage    21.19%   21.10%   -0.09%     
===========================================
  Files           25       25              
  Lines          939      938       -1     
  Branches        61       61              
===========================================
- Hits           199      198       -1     
  Misses         740      740              

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

@marcosbento
marcosbento deleted the fix/const_init_status branch April 22, 2026 08:36
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