Oipo commented on issue #203:
URL: https://github.com/apache/celix/pull/203#issuecomment-616543989


   > > Also, I'd prefer if this library would be separate from celix, so that 
it is usable without adding celix to your project.
   > 
   > Same setup as etcdlib?
   
   I was actually thinking of a separate repository, which I had expected for 
etcdlib as well. However, perhaps that's something for a future date.
   
   > > What is the reason to focus on std::function instead of template args?
   > 
   > I personally find the API much clearer without template arg if they can be 
avoided, so that why I prefer the use of std::function. What is the benefit of 
using template args?
   
   Depending on situation, there is a sizeable performance impact on using 
std::function. See https://stackoverflow.com/a/14678298 for a proper 
explanation.
   
   What I do think though, and why I think libraries such as 
[continuable](https://github.com/Naios/continuable) are in C++14, is that C++11 
doesn't support some template niceties that may make implementing template 
lambdas difficult for celix.


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to