Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble understanding more complex use case #330

Open
jferch opened this issue Aug 10, 2023 · 2 comments
Open

Trouble understanding more complex use case #330

jferch opened this issue Aug 10, 2023 · 2 comments

Comments

@jferch
Copy link

jferch commented Aug 10, 2023

Hi everyone,

thanks for the interesting library, I really appreciate the design concept and philosophy!

I'm struggling a bit however how one would build up a more complicated example which require additional dependencies (maybe closely related to this issue?). The examples I've seen are either using pure functions or utilize std::cout/global variables. I unfortunately can't seem to grasp the concept from the documentation, tests or the presentations but quite sure I'm missing something.

I don't believe passing them into the lambdas with captures would be possible due to func_ptr_t being a regular function pointer? Would I need to add depending types as a static members but then this would make testing/mocking individual parts quite difficult?

Thanks so much in advance!
Johannes

@lukevalenty
Copy link
Contributor

I think some more practical examples would be very helpful for you. We have a large code-base using previous iterations of this library, and a new one using this version now. Unfortunately we can't share any of the code that uses this library. I will think about some more practical and relevant examples we can create to help explain how this works. 🤔

@jferch
Copy link
Author

jferch commented Aug 18, 2023

@lukevalenty Yes, I figured. That would be great, thanks! :) Have a good weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants