BewareMyPower commented on code in PR #169: URL: https://github.com/apache/pulsar-client-cpp/pull/169#discussion_r1071937413
########## include/pulsar/ProducerConfiguration.h: ########## @@ -532,6 +533,10 @@ class PULSAR_PUBLIC ProducerConfiguration { */ ProducerAccessMode getAccessMode() const; + ProducerConfiguration& intercept(const std::initializer_list<ProducerInterceptorPtr> interceptors); Review Comment: I just think of a point that if users want to maintain the interceptors, e.g. there is already a `std::vector<ProducerInterceptorPtr>`, there is no way to convert a `vector` to `initializer_list`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org