Closed yurivict closed 7 years ago
Which version of Clang are you using? Have you tried using GNU compilers? I am afraid using std::cbrt
is not the right solution here, we really want to use the data typed provided by libtaylor here, in order to have functional derivatives calculated with automatic differentiation, but I might be wrong and @uekstrom can definitely correct me. What happens if you pass 2.0
as argument to cbrt
instead? Can you report for both Clang and GNU?
Replacing 2 with 2.0 solves the problem. clang-4.0.0
OK, I'd say let's keep the issue open until @uekstrom and/or others can comment too. Would you also be so kind as to file a pull request with these changes? Just so that we don't forget about this problem and its solution.
Getting this error on FreeBSD 11 (using clang):
One way to solve this is to replace cbrt with std::cbrt.