Details
Description
Mesos offers two almost-identical constructors
// TODO(vinod): Remove this in favor of the below constructor. Mesos(const std::string& master, const std::function<void(void)>& connected, const std::function<void(void)>& disconnected, const std::function<void(const std::queue<Event>&)>& received); Mesos(const std::string& master, ContentType contentType, const std::function<void(void)>& connected, const std::function<void(void)>& disconnected, const std::function<void(const std::queue<Event>&)>& received);
Here invocations of the first constructor can replaced trivially with
invocations of the second one with contentType = ContentType::PROTOBUF.