Skip to content
Snippets Groups Projects
Commit cc038f05 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

[bugfix] Use const references in Hybrid::Imp::equals()

If T2/T2 are not defined by 'const T1&', they will themselfes
be of reference type. Hence T2::value does not exist and the
equals() overload for the static evaluation is not selected.
Then the dynamic equals() overload is used. This will give the
same result, but the compiler will instantiate the if branch
with the identity if if the result is 'false'.

This is what lead to a failing test in dune-tnnmg when looping
over a MultitypeMatrix because the if-branch is used with the
wrong type.
parent 0022b7c9
No related branches found
No related tags found
No related merge requests found
Pipeline #
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment