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

Support testing/clearing Assignable_Proxy_Function's callable #480

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

totalgee
Copy link
Contributor

Issue this pull request references: #321

Changes proposed in this pull request

  • add operator bool() cast to test if an Assignable_Proxy_Function has a callable.
  • add clear() to reset/empty the callable function.
  • include new compiled test case to work with (setting, testing, calling and clearing) callback functions in C++ objects.

- add `operator bool()` cast to test if an Assignable_Proxy_Function
  has a callable.
- add `clear()` to reset/empty the callable function.
- include new compiled test case to work with (setting, testing, calling
  and clearing) callback functions in C++ objects.
@totalgee
Copy link
Contributor Author

Incidentally, when I run make test or just ctest locally, if there is actually an error it still shows the tests as passing. However if you actually run ./compiled_tests you'll see if there were any failing exceptions or CHECK() clauses. Why is that? Does "compiled_tests" not have the proper return code? Hopefully it actually checks these things properly when running the continuous integration, if not in my local build.

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

Successfully merging this pull request may close these issues.

None yet

1 participant