Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clang build with CppAD >= 2024 #88

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

jorisv
Copy link
Contributor

@jorisv jorisv commented Jun 5, 2024

Hello,

CppAD 2024 add a max_digits10 member to CppAD::numeric_limits.
This member is not defined in CppADCodeGen and this create compilation issue with clang based compiler.

To avoid future issue, we use CPPAD_NUMERIC_LIMITS macro that will ensure we always have an up to date version of CppAD::numeric_limits.

See CppAD#206.

#87 should be merged before merging this PR.

CppAD 2024 add a `max_digits10` member to `CppAD::numeric_limits`.
This member is not defined in CppADCodeGen and this create compilation
issue with clang based compiler.

To avoid future issue, we use `CPPAD_NUMERIC_LIMITS` macro that will
ensure we always have an up to date version of `CppAD::numeric_limits`.

See [CppAD#206](coin-or/CppAD#206).
@jorisv jorisv marked this pull request as ready for review June 11, 2024 09:13
@joaoleal joaoleal merged commit 062f00b into joaoleal:master Jun 16, 2024
2 checks passed
@jorisv jorisv deleted the topic/fix_clang_cppad branch June 17, 2024 09:34
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