commit | 45e6e6f6eb8754f86ebe6886d39fc97addd13b5f | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Fri Nov 04 11:06:22 2016 +0100 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Fri Nov 04 11:06:22 2016 +0100 |
tree | e21d21350da4a5f5244ad63abd3f4659ac552cfa | |
parent | 12edaaa66ac8a41c65208252f8b651e639458110 [diff] |
add note about custom type casters (fixes #480)
diff --git a/docs/advanced/cast/custom.rst b/docs/advanced/cast/custom.rst index 50b07db..c854e7f 100644 --- a/docs/advanced/cast/custom.rst +++ b/docs/advanced/cast/custom.rst
@@ -77,3 +77,9 @@ } }; }} // 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.