-
Notifications
You must be signed in to change notification settings - Fork 740
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
not_null and std::function #325
Comments
Hi @davidhunter22. There has been no previous talk of specializing for We have not put together a proposal to standardize With that said, I think once we get it a little more polished it should be one of the next types we try to standardize. |
it seems that I have a PR already in that makes not_null work with std::function (if it didn't already). I added unit tests to check for std::function compatibility to my existing PR to make sure it continues to work. The syntax isn't the nicest not_null_std_function.get()(parameters, go, here); but it does work. |
Maintainers' call: Sorry for the delay in replying to this issue. The design of |
Has there been any discussion of having a specialization of not_null for std::function. So
not_null<std::function<blah>>
would imply the std::function contains some non null function pointer.
Also has not_null been put for standardization?
The text was updated successfully, but these errors were encountered: