-
- Downloads
[!550] [DebugAlign] Provide min() and max() overloads.
Merge branch 'debugalign-overload-min-max' into 'master' A superficial reading of the standard's LessThanComparable requirement may suggest that we could actually use std::min() and std::max(). But as it turns out this isn't all that clear, see <https://cplusplus.github.io/LWG/issue2114>. libc++ chose LessThanComparable in a way that requires the result of the comparison to be implicitly convertible to bool, which we cannot guarantee as we do not want the debug type the automatically decay into its underlying type in all kinds of contexts. So we go with the alternative route of overloading min() and max(). Adresses: [core/dune-istl#50] See merge request [core/dune-common!550] [core/dune-istl#50]: gitlab.dune-project.org/core/dune-istl/issues/50 [core/dune-common!550]: gitlab.dune-project.org/core/dune-common/merge_requests/550
No related branches found
No related tags found
Please register or sign in to comment