Skip to content
Snippets Groups Projects
  • Christian Engwer's avatar
    0e3ddd4c
    [bugfix] "properly" from field_type to int · 0e3ddd4c
    Christian Engwer authored
    we have to retrieve an int which is stored in field_type. If the field_type is std::complex, we
    have to access the real-component, if it is double/float, we don't have to do anything
    special. We use std::real(.) to get the correct real value. This function (with its appropriate
    overloads) is available from c++11 on, but this part was already supported by the ancient
    g++ version we supprt ;-)
    0e3ddd4c
    History
    [bugfix] "properly" from field_type to int
    Christian Engwer authored
    we have to retrieve an int which is stored in field_type. If the field_type is std::complex, we
    have to access the real-component, if it is double/float, we don't have to do anything
    special. We use std::real(.) to get the correct real value. This function (with its appropriate
    overloads) is available from c++11 on, but this part was already supported by the ancient
    g++ version we supprt ;-)