joaoleal / CppADCodeGen

Source Code Generation for Automatic Differentiation using Operator Overloading
Other
162 stars 36 forks source link

Fix clang build with CppAD >= 2024 #88

Closed jorisv closed 2 weeks ago

jorisv commented 1 month ago

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.