mirror of
https://github.com/RYDE-WORK/pybind11.git
synced 2026-02-04 06:23:30 +08: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
|
}} // 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…
x
Reference in New Issue
Block a user