Make Buffer::operator== a free function

This commit is contained in:
Matias Fontanini
2016-11-06 13:50:50 -08:00
parent 33680839a2
commit aa7fa6ce0d
2 changed files with 21 additions and 21 deletions

View File

@@ -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