Skip to content

Commit

Permalink
Merge pull request #20 from auto-differentiation/macos-cxx17-build
Browse files Browse the repository at this point in the history
C++17 build fixes on MacOS
  • Loading branch information
auto-differentiation-dev authored Jul 27, 2024
2 parents b71100f + 17740ae commit 10fd9e2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ql/qlrisks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,15 @@ namespace boost {
return boost::math::lltrunc(xad::value(v));
}

inline long_long_type lltrunc(const xad::AReal<double>& v) {
return boost::math::lltrunc(xad::value(v));
}

template <class Policy>
inline long_long_type llround(const xad::AReal<double>& v, const Policy& p) {
return boost::math::llround(xad::value(v), p);
}

template <class Op, class Expr1, class Expr2>
inline int itrunc(const xad::BinaryExpr<double, Op, Expr1, Expr2>& v) {
return itrunc(xad::value(v), policies::policy<>());
Expand Down

0 comments on commit 10fd9e2

Please sign in to comment.