-
Notifications
You must be signed in to change notification settings - Fork 46
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
Calling rvalue functions twice #24
Comments
Hey, thanks for your issue report. I thought about this and decided that it is more a feature request than an actual issue of the library, which I don't want to support, due to the following reasons:
Implementing a wrapper over function2 that resets its state after invocation is trivial and can easily be implemented on the user side. The reason for requiring CMake 3.11 is that lower versions don't handle alias imports from interface targets correctly, see Line 15 in 7cca8ad
The library header isn't requiring the CMake build system and can easily be used standalone which means copying it into your project is supported, if you wish not to use the CMake library import. |
Thanks for your response. The reason I thought this is a bug is due to the following line in your readme:
Do I miss the proper way of using these One-Shot functions? |
The readme text could be misleading here: |
@Naios
Commit Hash
Git Tag 3.1.0
Expected Behavior
As Rvalue functions are meant to be single shot functions, the second invocation should result in raising a bad_function_call
Actual Behavior
Output:
Steps to Reproduce
Your Environment
Additional Questions
As I wish to use your library in a large GPL3 project, I cannot use the new Version 4.0, due to its cmake version higher than 3.5.
Why did you increase the Cmake version? It seems to work fine for me. Has anyone suggestions how to use the newer versions with old cmake?
The text was updated successfully, but these errors were encountered: