Skip to content

Use Dune::is_detected

Kilian Weishaupt requested to merge feature/dune-is_detected into master

fixes #602 (closed)

Dune2.6 already provides a fallback implementation of std::is_detected (C++17). We can use this to replace the rather lengthy and complicated isValid() method.

It is substantially less typing and easier to read. However, you need two helper structs instead of one (but each one being a one-liner).

Also seems to work with gcc5.5

Edited by Timo Koch

Merge request reports