Skip to content

Cast return value to double explicitly

Simon Praetorius requested to merge issue/double-return-type into master

The return type of the function is explicitly double. This fixed type is then used in the ternary operator ?:. If we write a FieldVector<T> of some other type, the ternary operator cannot automatically deduce which type to return otherwise.

Edited by Simon Praetorius

Merge request reports

Loading