diff options
author | Sven Gothel <[email protected]> | 2020-12-25 02:19:55 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-12-25 02:19:55 +0100 |
commit | d2be9d1227ebb48fad96326dd63164244d05918c (patch) | |
tree | 34f0614ce1fbfb062d695f2eea26963e24bf34da | |
parent | 021cd558c103a19f52d230070dbcadd75b18b446 (diff) |
Fix operator==(const EUI48& lhs, const EUI48& rhs): Sloppy typo lhs -> rhs for 2nd argument; Remove operator<(..)
-rw-r--r-- | api/direct_bt/BTAddress.hpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/api/direct_bt/BTAddress.hpp b/api/direct_bt/BTAddress.hpp index 3b91e45e..01f54a37 100644 --- a/api/direct_bt/BTAddress.hpp +++ b/api/direct_bt/BTAddress.hpp @@ -202,16 +202,13 @@ namespace direct_bt { std::string toString() const; } ); - inline bool operator<(const EUI48& lhs, const EUI48& rhs) noexcept - { return memcmp(&lhs, &rhs, sizeof(EUI48))<0; } - inline bool operator==(const EUI48& lhs, const EUI48& rhs) noexcept { if( &lhs == &rhs ) { return true; } //return !memcmp(&lhs, &rhs, sizeof(EUI48)); const uint8_t * a = lhs.b; - const uint8_t * b = lhs.b; + const uint8_t * b = rhs.b; return a[0] == b[0] && a[1] == b[1] && a[2] == b[2] && |