From 83c048d1295b9df59d90a7513953c99a267eb1f5 Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joel.grunbaum@imc.com> Date: Tue, 11 Jan 2022 07:26:39 +0000 Subject: [PATCH] CYA Cmake, compiling on remote box --- protocol.cpp | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/protocol.cpp b/protocol.cpp index e21a2df..0396038 100644 --- a/protocol.cpp +++ b/protocol.cpp @@ -170,7 +170,7 @@ void tradeOrder(std::unordered_map<std::string, book::Book>& bs, json::TradeMessage* message) { - if (bs.contains(message->passiveOrder)) { + if (bs.find(message->passiveOrder) != bs.end()) { if (message->tradeType == json::BUY_AGGRESSOR) { if (message->passiveOrderRemaining > 0) { bs[message->product].askSide.at(message->passiveOrder).volume = -- Gitblit v1.9.3