python-bindings on macOS produce 'non-type template argument is not a constant expression'
Building the python-bindings on my Mac (using Apple clang version 11.0.0 (clang-1100.0.33.12)) I get a few errors of the kind:
dune/dune-grid/dune/python/grid/gridview.hh:361:99: error: non-type template argument is not a constant expression
canCommunicate[ codim ] = pybind11::cast( bool( Capabilities::canCommunicate< Grid, codim >::v ) );
[...]
dune/dune-grid/dune/python/grid/gridview.hh:360:19: note: in instantiation of function template specialization 'Dune::Hybrid::forEach<std::__1::integer_sequence<int, 0, 1, 2>, (lambda at /Users/samuelburbulla/dune/dune-grid/dune/python/grid/gridview.hh:360:84)>' requested here
Hybrid::forEach( std::make_integer_sequence< int, Grid::dimension+1 >(), [ &canCommunicate ] ( auto &&codim ) {
Replacing all auto &&codim
by auto codim
in dune-grid resolves all errors.