Skip to content

[Type] Array/Vec: small refresh for modern C++#5907

Merged
th-skam merged 7 commits intosofa-framework:masterfrom
fredroy:modernize_arrays
Feb 19, 2026
Merged

[Type] Array/Vec: small refresh for modern C++#5907
th-skam merged 7 commits intosofa-framework:masterfrom
fredroy:modernize_arrays

Conversation

@fredroy
Copy link
Copy Markdown
Contributor

@fredroy fredroy commented Jan 29, 2026

using std algos, clamp, etc and some keywords noexcept.

and fixed_array_algo, removing some useless templates

and some (generated but modified) unit tests for vec ,as there were almost none ? 🤔

Note that fixed_array_algo is only used in RGBAColor, at least in the standard code base.

[with-all-tests]


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@fredroy fredroy added pr: status to review To notify reviewers to review this pull-request pr: clean Cleaning the code pr: test PR adding test(s) in SOFA labels Jan 29, 2026
@fredroy
Copy link
Copy Markdown
Contributor Author

fredroy commented Jan 29, 2026

[ci-build][with-all-tests]

Comment thread Sofa/framework/Type/src/sofa/type/Vec.h Outdated
Comment thread Sofa/framework/Type/test/VecTypes_test.cpp Outdated
Comment thread Sofa/framework/Type/test/VecTypes_test.cpp
Comment thread Sofa/framework/Type/src/sofa/type/Vec.h Outdated
@th-skam th-skam added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Feb 19, 2026
@th-skam th-skam merged commit 1be36b0 into sofa-framework:master Feb 19, 2026
13 checks passed
@hugtalbot hugtalbot added this to the v26.06 milestone Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: clean Cleaning the code pr: status ready Approved a pull-request, ready to be squashed pr: test PR adding test(s) in SOFA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants