-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
cast: Qualify symbol usage in PYBIND11_TYPE_CASTER #3758
cast: Qualify symbol usage in PYBIND11_TYPE_CASTER #3758
Conversation
Permits using macro outside of pybind11::detail
Quick drive-by comment/question:
|
Thanks! And great point on testing - fixed an error 😅 See 1d1dbb4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome. I agree it fits well into tests/test_custom_type_casters.cpp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yet another reason to avoid using macros.
* cast: Qualify symbol usage in PYBIND11_TYPE_CASTER Permits using macro outside of pybind11::detail * fixup! review
* cast: Qualify symbol usage in PYBIND11_TYPE_CASTER Permits using macro outside of pybind11::detail * fixup! review
Description
Permits using macro outside of pybind11::detail
Motivated by RobotLocomotion/drake#16625 (review)
Suggested changelog entry: