Commit b455a392 authored by Jason Rhinelander's avatar Jason Rhinelander

Fix virtual add/removeFirm: add_/remove_firm in pyeris

parent a9cc3208
......@@ -22,8 +22,8 @@ public:
PYBIND11_OVERLOAD_PURE(Market::Reservation, Market, reserve, agent, q, p_max);
}
virtual void buy(Market::Reservation &res) override { PYBIND11_OVERLOAD(void, Market, buy, res); }
virtual void addFirm(SharedMember<Firm> f) override { PYBIND11_OVERLOAD(void, Market, addFirm, f); }
virtual void removeFirm(eris_id_t fid) override { PYBIND11_OVERLOAD(void, Market, removeFirm, fid); }
virtual void addFirm(SharedMember<Firm> f) override { PYBIND11_OVERLOAD_NAME(void, Market, "add_firm", addFirm, f); }
virtual void removeFirm(eris_id_t fid) override { PYBIND11_OVERLOAD_NAME(void, Market, "remove_firm", removeFirm, fid); }
// Not virtual, but needs to be exposed publically
Market::Reservation _create_reservation(const SharedMember<Agent> &agent, double q, double p) { return PyMember<Base>::createReservation(agent, q, p); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment