Skip to content
Snippets Groups Projects
Forked from Core Modules / dune-common
Source project has a limited visibility.
  • Martin Nolte's avatar
    de0b6e9e
    use field_type( 1 ) instead of 1.0 · de0b6e9e
    Martin Nolte authored
    This fixes FS#1317 for me (use invert for 2x2 matrix with
    std::complex< long double >).
    The problem is that 1.0 is a double, which can be converted implicitly
    to a long double which, in turn, could be converted implicitly into a
    std::complex< long double >. However, the compiler does not use two
    implicit type conversions, so double cannot be divided by a
    std::complex< long double >.
    de0b6e9e
    History
    use field_type( 1 ) instead of 1.0
    Martin Nolte authored
    This fixes FS#1317 for me (use invert for 2x2 matrix with
    std::complex< long double >).
    The problem is that 1.0 is a double, which can be converted implicitly
    to a long double which, in turn, could be converted implicitly into a
    std::complex< long double >. However, the compiler does not use two
    implicit type conversions, so double cannot be divided by a
    std::complex< long double >.