Commit 45e6e6f6 authored by Wenzel Jakob's avatar Wenzel Jakob
Browse files

add note about custom type casters (fixes #480)

parent 12edaaa6
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment