mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 06:35:12 +00:00
add note about custom type casters (fixes #480)
This commit is contained in:
parent
12edaaa66a
commit
45e6e6f6eb
@ -77,3 +77,9 @@ type is explicitly allowed.
|
||||
}
|
||||
};
|
||||
}} // namespace pybind11::detail
|
||||
|
||||
.. warning::
|
||||
|
||||
When using custom type casters, it's important to declare them consistently
|
||||
in every compilation unit of the Python extension module. Otherwise,
|
||||
undefined behavior can ensue.
|
||||
|
Loading…
Reference in New Issue
Block a user