You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2021/10/18 13:01:14 UTC

[GitHub] [nifi-minifi-cpp] fgerlits commented on pull request #1182: DRAFT: Refactor *StreamCallback to be function objects

fgerlits commented on pull request #1182:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1182#issuecomment-945741723


   I like this.  Just two comments for discussion:
   1. using a `const&` {Input,Output}StreamCallback parameter, which makes the `std::ref()` necessary, does not feel natural to me.  If I was to write new code with a stateful callback, I would not know I'd need `std::ref()`, and then spend a fair bit of time trying to find out why my code doesn't work.  I would prefer a universal reference parameter, but I don't like having to put `read()` etc in the header.  Maybe someone has a better idea?
   2. [[predictable]] I would put the stream `shared_ptr` to `&` change in a separate pull request.


-- 
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: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org