Skip to content

Commit

Permalink
Merge pull request #25 from auto-differentiation/xcelerit-team-patch-1
Browse files Browse the repository at this point in the history
Fix C++20 build in Windows
  • Loading branch information
auto-differentiation-dev authored Oct 5, 2024
2 parents a1fcf4f + 0d9476a commit df93764
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
fail-fast: false
matrix:
disable_aad: ["ON", "OFF"]
cxx: ["17"]
cxx: ["17", "20"]
runs-on: windows-2022
env:
vsvarsall: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat
Expand Down
4 changes: 2 additions & 2 deletions ql/qlrisks.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,15 @@ namespace boost {
// MSVC specialisations / fixes
#ifdef _MSC_VER

#include <random>

// required for random - as it calls ::sqrt on arguments
using xad::sqrt;
using xad::pow;
using xad::exp;
using xad::log;
using xad::tan;

#include <random>

namespace std {

// this is needed to avoid std::random to revert to a binary / constexpr
Expand Down

0 comments on commit df93764

Please sign in to comment.