diff --git a/include/emp/hardware/AvidaGP.hpp b/include/emp/hardware/AvidaGP.hpp index ec1eab47f9..ce1067fec7 100644 --- a/include/emp/hardware/AvidaGP.hpp +++ b/include/emp/hardware/AvidaGP.hpp @@ -68,7 +68,7 @@ namespace emp { Instruction & operator=(const Instruction &) = default; Instruction & operator=(Instruction &&) = default; bool operator<(const Instruction & in) const { - return std::tie(id, args) < std::tie(in.id, in.args); + return (id == in.id) ? (args < in.args) : (id < in.id); } bool operator==(const Instruction & in) const { return id == in.id && args == in.args; } bool operator!=(const Instruction & in) const { return !(*this == in); }