Skip to content

[Bindings/SofaTypes] static_assert on cross()#112

Merged
jnbrunet merged 1 commit into
sofa-framework:masterfrom
fredroy:fix_vec_binding
Feb 12, 2021
Merged

[Bindings/SofaTypes] static_assert on cross()#112
jnbrunet merged 1 commit into
sofa-framework:masterfrom
fredroy:fix_vec_binding

Conversation

@fredroy

@fredroy fredroy commented Feb 12, 2021

Copy link
Copy Markdown
Contributor

Add a static assert on addCross, if called with something else than Vec2 or Vec3.
Make the code clearer anyway.

@jnbrunet
jnbrunet merged commit 4def6d8 into sofa-framework:master Feb 12, 2021
@jnbrunet

Copy link
Copy Markdown
Contributor

@fredroy should we backport this to v20.12 ?

@guparan guparan added this to the v21.06 milestone Oct 26, 2021
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.

3 participants