Add conversion/comparison operators to Buffer

This commit is contained in:
Matias Fontanini
2016-06-15 20:47:40 -07:00
parent 9e79321a1f
commit 8db1df0998
6 changed files with 145 additions and 18 deletions

View File

@@ -81,10 +81,10 @@ int main(int argc, char* argv[]) {
else {
// Print the key (if any)
if (msg.get_key()) {
cout << msg.get_key().as_string() << " -> ";
cout << msg.get_key() << " -> ";
}
// Print the payload
cout << msg.get_payload().as_string() << endl;
cout << msg.get_payload() << endl;
// Now commit the message
consumer.commit(msg);
}