Skip to content
Snippets Groups Projects
  • Oliver Sander's avatar
    a3baa1fe
    Use 'double' instead of 'T' for the convexityRadius field · a3baa1fe
    Oliver Sander authored
    When using the classes with ADOL-C, T becomes an 'adouble',
    which is a non-trivial type.  However, the convexityField
    is constexpr (and with a reason -- otherwise we could write
    the initialization together with the declaration), and
    constexpr and non-trivial types don't work together.
    
    [[Imported from SVN: r9444]]
    a3baa1fe
    History
    Use 'double' instead of 'T' for the convexityRadius field
    Oliver Sander authored
    When using the classes with ADOL-C, T becomes an 'adouble',
    which is a non-trivial type.  However, the convexityField
    is constexpr (and with a reason -- otherwise we could write
    the initialization together with the declaration), and
    constexpr and non-trivial types don't work together.
    
    [[Imported from SVN: r9444]]