Skip to content

Commit

Permalink
Fix std::complex conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed May 21, 2018
1 parent db155fb commit cce6e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/jlcxx/type_conversion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1434,7 +1434,7 @@ template<typename NumberT> struct static_type_mapping<std::complex<NumberT>>
};

template<typename NumberT>
struct ConvertToCpp<std::complex<NumberT>, false, true, true>
struct ConvertToCpp<std::complex<NumberT>, true, false, false>
{
std::complex<NumberT> operator()(std::complex<NumberT> julia_value) const
{
Expand All @@ -1443,7 +1443,7 @@ struct ConvertToCpp<std::complex<NumberT>, false, true, true>
};

template<typename NumberT>
struct ConvertToJulia<std::complex<NumberT>, false, true, true>
struct ConvertToJulia<std::complex<NumberT>, true, false, false>
{
detail::JuliaComplex<NumberT> operator()(std::complex<NumberT> cpp_value) const
{
Expand Down

0 comments on commit cce6e57

Please sign in to comment.