mirror of
https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka.git
synced 2025-10-31 18:47:48 +00:00
Make Buffer::operator== a free function
This commit is contained in:
@@ -134,16 +134,6 @@ public:
|
||||
return std::vector<T>(data_, data_ + size_);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compares this Buffer for equality
|
||||
*/
|
||||
bool operator==(const Buffer& rhs) const;
|
||||
|
||||
/**
|
||||
* Compares this Buffer for inequality
|
||||
*/
|
||||
bool operator!=(const Buffer& rhs) const;
|
||||
|
||||
/**
|
||||
* Output operator
|
||||
*/
|
||||
@@ -153,6 +143,16 @@ private:
|
||||
size_t size_;
|
||||
};
|
||||
|
||||
/**
|
||||
* Compares Buffer objects for equality
|
||||
*/
|
||||
bool operator==(const Buffer& lhs, const Buffer& rhs);
|
||||
|
||||
/**
|
||||
* Compares Buffer objects for inequality
|
||||
*/
|
||||
bool operator!=(const Buffer& lhs, const Buffer& rhs);
|
||||
|
||||
} // cppkafka
|
||||
|
||||
#endif // CPPKAFKA_BUFFER_H
|
||||
|
||||
Reference in New Issue
Block a user