Commit b6d129f
committed
Revert include removal of <pybind11/complex.h> from full_ctor.cpp
- FullContigFactory is instantiated for all types including complex types
- full_contig_impl<dstTy> uses py::cast<dstTy>:
dstTy fill_v = py::cast<dstTy>(py_value);
- When dstTy is std::complex<float> or std::complex<double>, pybind11 needs to know how to convert a Python object to that C++ type
- <pybind11/complex.h> registers the type caster for std::complex<T>, enabling py::cast<std::complex<T>>() to work1 parent 3ca9cf6 commit b6d129f
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
0 commit comments