From c1a25fcacc745186453870c8d8ff0b4eecbed207 Mon Sep 17 00:00:00 2001 From: Chris Frey Date: Tue, 15 Dec 2009 00:10:45 -0500 Subject: [PATCH] lib: added operator==() to ProbeResult This makes it possible to use std::find() to search the results vector for a Pin number. --- src/probe.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/probe.h b/src/probe.h index ba9c40a3..0c68568b 100644 --- a/src/probe.h +++ b/src/probe.h @@ -50,6 +50,11 @@ struct BXEXPORT ProbeResult {} void DumpAll(std::ostream &os) const; bool HasIpModem() const { return m_epModem.IsComplete(); } + + bool operator==(const Barry::Pin &pin) const + { + return m_pin == pin; + } }; BXEXPORT std::ostream& operator<< (std::ostream &os, const ProbeResult &pr); -- 2.11.4.GIT