add note about custom type casters (fixes #480)

This commit is contained in:
Wenzel Jakob 2016-11-04 11:06:22 +01:00
parent 12edaaa66a
commit 45e6e6f6eb

View File

@ -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.