Use standard-conforming detector idiom
See also:
https://gitlab.dune-project.org/core/dune-common/-/merge_requests/1218
https://gitlab.dune-project.org/core/dune-common/-/issues/326
Change required with changes in Dune with didn't fully conform to the C++ standard interface.
Edited by Timo Koch