As per https://github.com/JuliaInterop/CxxWrap.jl/pull/69, the jlcxx::mapped_julia_type<std::complex<T>> should be exactly std::complex<T>. This is not the case in upstream CxxWrap because doing so creates a runtime issue on windows for an unknown reason.
For this reason, we specialize the inner types for std::complex<T> so that the correct type is used.
As per https://github.com/JuliaInterop/CxxWrap.jl/pull/69, the
jlcxx::mapped_julia_type<std::complex<T>>
should be exactlystd::complex<T>
. This is not the case in upstream CxxWrap because doing so creates a runtime issue on windows for an unknown reason.For this reason, we specialize the inner types for
std::complex<T>
so that the correct type is used.