Commit 6ea8d3b0 authored by Oliver Sander's avatar Oliver Sander

[!123] add explicit type cast in ?: ternary operator

Merge branch 'issue/missing_common_type' into 'master'

ref:core/dune-localfunctions

### Summary

Add an explicit cast to the known return type in a ?: operator for the case
that no common-type is available to the compiler

### Details

When using non-pod types as range type in localfunctions, like Float128, it
may be that the ternary operator `bool ? Float128 : int` (or with interchanged
arguments) can not be used, since the compiler can not deduce the return type
of this operator. Since the return type is known in some functions, it can be
used here directly to case the arguments of the ternary ?:.

See merge request [!123]

  [!123]: gitlab.dune-project.org/core/dune-localfunctions/merge_requests/123
parents b591f135 fce1a5c5
Pipeline #18308 passed with stage
in 7 minutes and 13 seconds