Closed 196884 closed 3 years ago
The signature specifies a cppkafka::Event as the second argument, but that object is not copyable (implicitly deleted, as it uses an std::unique_ptr which itself is not copyable...). Would it make sense to pass a const cppkafka::Event& instead?
That callback takes an Event so you should be able to move it. e.g. events.push_back(move(event));
Event
events.push_back(move(event));
Arf, yes, thanks!
The signature specifies a cppkafka::Event as the second argument, but that object is not copyable (implicitly deleted, as it uses an std::unique_ptr which itself is not copyable...). Would it make sense to pass a const cppkafka::Event& instead?