make implicit conversions non-reentrant (fixes #1035) (#1037)

This commit is contained in:
Wenzel Jakob
2017-08-28 16:34:06 +02:00
committed by GitHub
parent 15f36d2b2d
commit 8ed5b8ab55
4 changed files with 34 additions and 0 deletions

View File

@@ -585,6 +585,10 @@ Python side:
Implicit conversions from ``A`` to ``B`` only work when ``B`` is a custom
data type that is exposed to Python via pybind11.
To prevent runaway recursion, implicit conversions are non-reentrant: an
implicit conversion invoked as part of another implicit conversion of the
same type (i.e. from ``A`` to ``B``) will fail.
.. _static_properties:
Static properties