JuliaInterop / Cxx.jl

The Julia C++ Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

add automated conversions for std::complex?

stevengj opened this issue · comments

Since std::complex<T> can be losslessly converted to/from Complex{T} for typical bitstypes T, it seems like these conversions should be automatic in Cxx.jl?

I was thinking of submitting a PR for this, but wanted to check whether this is desired.

I think the automatic conversions in PyCall are great, and it's also great to be able to inhibit the conversion with e.g. py"1j"o.