Skip to content

doesn't build with recent apple clang

gcc-14 works.

There are conflicts with clang's std::complex headers - eg isinf(dual<> &) not found(, and more).

[ 33%] Building CXX object tests/CMakeFiles/test_dual_1.dir/test_dual.cpp.o
In file included from cppduals/tests/test_dual.cpp:19:
In file included from cppduals/duals/dual:19:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include/c++/v1/cmath:597:10: error: no matching function for call to 'isinf'
  597 |   return std::isinf(__lcpp_x);
      |          ^~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.2.sdk/usr/include/c++/v1/complex:636:26: note: in instantiation of function template specialization 'std::__constexpr_isinf<duals::dual<float>, 0>' requested here
  636 |     bool __z_inf  = std::__constexpr_isinf(__a) || std::__constexpr_isinf(__b);
      |                          ^
cppduals/tests/test_dual.cpp:1071:9: note: in instantiation of function template specialization 'std::operator*<duals::dual<float>>' requested here
 1071 |   A = B * C;
      |         ^
...
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information