Fix build issues on OSX

This commit is contained in:
Matias Fontanini
2016-06-20 13:31:15 -07:00
parent c615664f12
commit 0a58fc306b
4 changed files with 4 additions and 2 deletions

View File

@@ -110,7 +110,7 @@ optional<MessageTimestamp> Message::get_timestamp() const {
rd_kafka_timestamp_type_t type = RD_KAFKA_TIMESTAMP_NOT_AVAILABLE;
int64_t timestamp = rd_kafka_message_timestamp(handle_.get(), &type);
if (timestamp == -1 || type == RD_KAFKA_TIMESTAMP_NOT_AVAILABLE) {
return none_t();
return {};
}
return MessageTimestamp(timestamp, static_cast<MessageTimestamp::TimestampType>(type));
}