Skip to content

Commit

Permalink
Merge pull request #166 from bluescarni/pr/heyoka_fixes
Browse files Browse the repository at this point in the history
Fix for change in the heyoka API
  • Loading branch information
bluescarni committed Jan 29, 2024
2 parents b18dc52 + 3ca0469 commit 247a959
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion heyoka/expose_expression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <cstdint>
#include <functional>
#include <iterator>
#include <map>
#include <optional>
#include <sstream>
#include <string>
Expand Down Expand Up @@ -298,7 +299,7 @@ void expose_expression(py::module_ &m)
"subs",
[](const v_ex_t &arg,
const std::variant<std::unordered_map<std::string, hey::expression>,
std::unordered_map<hey::expression, hey::expression>> &smap,
std::map<hey::expression, hey::expression>> &smap,
bool normalise) {
return std::visit(
[normalise](const auto &a, const auto &m) -> v_ex_t { return hey::subs(a, m, normalise); }, arg, smap);
Expand Down

0 comments on commit 247a959

Please sign in to comment.