Cxx.jl icon indicating copy to clipboard operation
Cxx.jl copied to clipboard

add automated conversions for std::complex?

Open stevengj opened this issue 4 years ago • 1 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.

stevengj avatar May 19 '20 16:05 stevengj

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.

goretkin avatar Jul 26 '20 18:07 goretkin