grid/io/file/dgfparser/dgfparser.cc does not compile with gcc 4.9.1
Dear all,
I am trying to build the core modules, releses/2.5 branch with gcc 4.9.1 and get the error below. Please let me know if you need any further information:
--- calling make for dune-grid ---
cmake --build . --
Scanning dependencies of target dunegrid
[ 5%] Building CXX object lib/CMakeFiles/dunegrid.dir/__/dune/grid/onedgrid/onedgrid.cc.o
[ 11%] Building CXX object lib/CMakeFiles/dunegrid.dir/__/dune/grid/onedgrid/onedgridfactory.cc.o
[ 17%] Building CXX object lib/CMakeFiles/dunegrid.dir/__/dune/grid/onedgrid/nulliteratorfactory.cc.o
[ 17%] Building CXX object lib/CMakeFiles/dunegrid.dir/__/dune/grid/io/file/dgfparser/dgfparser.cc.o
In file included from BASEDIR/dune-common/dune/common/streamoperators.hh:14:0,
from BASEDIR/dune-common/dune/common/array.hh:13,
from BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:14,
from BASEDIR/dune-grid/dune/grid/io/file/dgfparser/dgfparser.cc:12:
BASEDIR/dune-common/dune/common/hybridutilities.hh: In instantiation of ‘constexpr decltype(auto) Dune::Hybrid::Impl::elementAt(Container&&, Index&&, Dune::PriorityTag<0ul>) [with Container = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>&; Index = std::integral_constant<long unsigned int, 0ul>]’:
BASEDIR/dune-common/dune/common/hybridutilities.hh:140:95: required from ‘constexpr decltype(auto) Dune::Hybrid::elementAt(Container&&, Index&&) [with Container = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>&; Index = std::integral_constant<long unsigned int, 0ul>]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:95: required from ‘constexpr void Dune::Hybrid::Impl::forEachIndex(Range&&, F&&, std::integer_sequence<Index, i ...>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]::<lambda(auto:11)>; Index = long unsigned int; Index ...i = 0ul, 1ul, 2ul, 3ul]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:278:73: required from ‘constexpr void Dune::Hybrid::Impl::forEach(Range&&, F&&, Dune::PriorityTag<1ul>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]::<lambda(auto:11)>; typename std::enable_if<Dune::IsIntegralConstant<decltype (Dune::Hybrid::size(declval<Range>()))>::value, int>::type <anonymous> = 0]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:316:82: required from ‘constexpr void Dune::Hybrid::forEach(Range&&, F&&) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]::<lambda(auto:11)>]’
BASEDIR/dune-common/dune/common/forloop.hh:74:57: required from ‘static void Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:548:76: required from ‘void Dune::ReferenceElement<ctype, dim>::initialize(unsigned int) [with ctype = double; int dim = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:699:9: required from ‘Dune::ReferenceElementContainer<ctype, dim>::ReferenceElementContainer() [with ctype = double; int dim = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:780:54: required from ‘static const Dune::ReferenceElementContainer<ctype, dim>& Dune::ReferenceElements<ctype, dim>::container() [with ctype = double; int dim = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:765:24: required from ‘static const Dune::ReferenceElement<ctype, dim>& Dune::ReferenceElements<ctype, dim>::simplex() [with ctype = double; int dim = 3]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/dgfparser.cc:934:43: required from here
BASEDIR/dune-common/dune/common/hybridutilities.hh:110:13: error: no match for ‘operator[]’ (operand types are ‘Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>’ and ‘std::integral_constant<long unsigned int, 0ul>’)
return c[i];
^
BASEDIR/dune-common/dune/common/hybridutilities.hh: In instantiation of ‘constexpr void Dune::Hybrid::Impl::forEachIndex(Range&&, F&&, std::integer_sequence<Index, i ...>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]::<lambda(auto:11)>; Index = long unsigned int; Index ...i = 0ul, 1ul, 2ul, 3ul]’:
BASEDIR/dune-common/dune/common/hybridutilities.hh:278:73: required from ‘constexpr void Dune::Hybrid::Impl::forEach(Range&&, F&&, Dune::PriorityTag<1ul>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]::<lambda(auto:11)>; typename std::enable_if<Dune::IsIntegralConstant<decltype (Dune::Hybrid::size(declval<Range>()))>::value, int>::type <anonymous> = 0]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:316:82: required from ‘constexpr void Dune::Hybrid::forEach(Range&&, F&&) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul, 3ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]::<lambda(auto:11)>]’
BASEDIR/dune-common/dune/common/forloop.hh:74:57: required from ‘static void Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 3>&, std::tuple<std::vector<Dune::AffineGeometry<double, 3, 3>, std::allocator<Dune::AffineGeometry<double, 3, 3> > >, std::vector<Dune::AffineGeometry<double, 2, 3>, std::allocator<Dune::AffineGeometry<double, 2, 3> > >, std::vector<Dune::AffineGeometry<double, 1, 3>, std::allocator<Dune::AffineGeometry<double, 1, 3> > >, std::vector<Dune::AffineGeometry<double, 0, 3>, std::allocator<Dune::AffineGeometry<double, 0, 3> > > >&}; Operation = Dune::ReferenceElement<double, 3>::CreateGeometries; int first = 0; int last = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:548:76: required from ‘void Dune::ReferenceElement<ctype, dim>::initialize(unsigned int) [with ctype = double; int dim = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:699:9: required from ‘Dune::ReferenceElementContainer<ctype, dim>::ReferenceElementContainer() [with ctype = double; int dim = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:780:54: required from ‘static const Dune::ReferenceElementContainer<ctype, dim>& Dune::ReferenceElements<ctype, dim>::container() [with ctype = double; int dim = 3]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:765:24: required from ‘static const Dune::ReferenceElement<ctype, dim>& Dune::ReferenceElements<ctype, dim>::simplex() [with ctype = double; int dim = 3]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/dgfparser.cc:934:43: required from here
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:96: error: invalid use of void expression
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: error: no matching function for call to ‘evaluateFoldExpression(<brace-enclosed initializer list>)’
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: note: candidate is:
BASEDIR/dune-common/dune/common/hybridutilities.hh:256:8: note: template<class T> void Dune::Hybrid::Impl::evaluateFoldExpression(std::initializer_list<_Tp>&&)
void evaluateFoldExpression(std::initializer_list<T>&&)
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:256:8: note: template argument deduction/substitution failed:
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: note: cannot convert ‘{<expression error>}’ (type ‘<brace-enclosed initializer list>’) to type ‘std::initializer_list<int>&&’
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh: In instantiation of ‘constexpr decltype(auto) Dune::Hybrid::Impl::elementAt(Container&&, Index&&, Dune::PriorityTag<0ul>) [with Container = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>&; Index = std::integral_constant<long unsigned int, 0ul>]’:
BASEDIR/dune-common/dune/common/hybridutilities.hh:140:95: required from ‘constexpr decltype(auto) Dune::Hybrid::elementAt(Container&&, Index&&) [with Container = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>&; Index = std::integral_constant<long unsigned int, 0ul>]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:95: required from ‘constexpr void Dune::Hybrid::Impl::forEachIndex(Range&&, F&&, std::integer_sequence<Index, i ...>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]::<lambda(auto:11)>; Index = long unsigned int; Index ...i = 0ul, 1ul, 2ul]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:278:73: required from ‘constexpr void Dune::Hybrid::Impl::forEach(Range&&, F&&, Dune::PriorityTag<1ul>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]::<lambda(auto:11)>; typename std::enable_if<Dune::IsIntegralConstant<decltype (Dune::Hybrid::size(declval<Range>()))>::value, int>::type <anonymous> = 0]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:316:82: required from ‘constexpr void Dune::Hybrid::forEach(Range&&, F&&) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]::<lambda(auto:11)>]’
BASEDIR/dune-common/dune/common/forloop.hh:74:57: required from ‘static void Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:548:76: required from ‘void Dune::ReferenceElement<ctype, dim>::initialize(unsigned int) [with ctype = double; int dim = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:699:9: required from ‘Dune::ReferenceElementContainer<ctype, dim>::ReferenceElementContainer() [with ctype = double; int dim = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:780:54: required from ‘static const Dune::ReferenceElementContainer<ctype, dim>& Dune::ReferenceElements<ctype, dim>::container() [with ctype = double; int dim = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:765:24: required from ‘static const Dune::ReferenceElement<ctype, dim>& Dune::ReferenceElements<ctype, dim>::simplex() [with ctype = double; int dim = 2]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/entitykey_inline.hh:135:51: required from ‘static Dune::DGFEntityKey<unsigned int> Dune::ElementFaceUtil::generateSimplexFace(const std::vector<unsigned int>&, int) [with int dim = 2]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/entitykey_inline.hh:155:53: required from here
BASEDIR/dune-common/dune/common/hybridutilities.hh:110:13: error: no match for ‘operator[]’ (operand types are ‘Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>’ and ‘std::integral_constant<long unsigned int, 0ul>’)
return c[i];
^
BASEDIR/dune-common/dune/common/hybridutilities.hh: In instantiation of ‘constexpr void Dune::Hybrid::Impl::forEachIndex(Range&&, F&&, std::integer_sequence<Index, i ...>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]::<lambda(auto:11)>; Index = long unsigned int; Index ...i = 0ul, 1ul, 2ul]’:
BASEDIR/dune-common/dune/common/hybridutilities.hh:278:73: required from ‘constexpr void Dune::Hybrid::Impl::forEach(Range&&, F&&, Dune::PriorityTag<1ul>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]::<lambda(auto:11)>; typename std::enable_if<Dune::IsIntegralConstant<decltype (Dune::Hybrid::size(declval<Range>()))>::value, int>::type <anonymous> = 0]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:316:82: required from ‘constexpr void Dune::Hybrid::forEach(Range&&, F&&) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul, 2ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]::<lambda(auto:11)>]’
BASEDIR/dune-common/dune/common/forloop.hh:74:57: required from ‘static void Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 2>&, std::tuple<std::vector<Dune::AffineGeometry<double, 2, 2>, std::allocator<Dune::AffineGeometry<double, 2, 2> > >, std::vector<Dune::AffineGeometry<double, 1, 2>, std::allocator<Dune::AffineGeometry<double, 1, 2> > >, std::vector<Dune::AffineGeometry<double, 0, 2>, std::allocator<Dune::AffineGeometry<double, 0, 2> > > >&}; Operation = Dune::ReferenceElement<double, 2>::CreateGeometries; int first = 0; int last = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:548:76: required from ‘void Dune::ReferenceElement<ctype, dim>::initialize(unsigned int) [with ctype = double; int dim = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:699:9: required from ‘Dune::ReferenceElementContainer<ctype, dim>::ReferenceElementContainer() [with ctype = double; int dim = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:780:54: required from ‘static const Dune::ReferenceElementContainer<ctype, dim>& Dune::ReferenceElements<ctype, dim>::container() [with ctype = double; int dim = 2]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:765:24: required from ‘static const Dune::ReferenceElement<ctype, dim>& Dune::ReferenceElements<ctype, dim>::simplex() [with ctype = double; int dim = 2]’
BASEDIR/dune-grid/dune/gid/io/file/dgfparser/entitykey_inline.hh:135:51: required from ‘static Dune::DGFEntityKey<unsigned int> Dune::ElementFaceUtil::generateSimplexFace(const std::vector<unsigned int>&, int) [with int dim = 2]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/entitykey_inline.hh:155:53: required from here
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:96: error: invalid use of void expression
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: error: no matching function for call to ‘evaluateFoldExpression(<brace-enclosed initializer list>)’
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: note: candidate is:
BASEDIR/dune-common/dune/common/hybridutilities.hh:256:8: note: template<class T> void Dune::Hybrid::Impl::evaluateFoldExpression(std::initializer_list<_Tp>&&)
void evaluateFoldExpression(std::initializer_list<T>&&)
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:256:8: note: template argument deduction/substitution failed:
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: note: cannot convert ‘{<expression error>}’ (type ‘<brace-enclosed initializer list>’) to type ‘std::initializer_list<int>&&’
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh: In instantiation of ‘constexpr decltype(auto) Dune::Hybrid::Impl::elementAt(Container&&, Index&&, Dune::PriorityTag<0ul>) [with Container = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>&; Index = std::integral_constant<long unsigned int, 0ul>]’:
BASEDIR/dune-common/dune/common/hybridutilities.hh:140:95: required from ‘constexpr decltype(auto) Dune::Hybrid::elementAt(Container&&, Index&&) [with Container = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>&; Index = std::integral_constant<long unsigned int, 0ul>]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:95: required from ‘constexpr void Dune::Hybrid::Impl::forEachIndex(Range&&, F&&, std::integer_sequence<Index, i ...>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]::<lambda(auto:11)>; Index = long unsigned int; Index ...i = 0ul, 1ul]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:278:73: required from ‘constexpr void Dune::Hybrid::Impl::forEach(Range&&, F&&, Dune::PriorityTag<1ul>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]::<lambda(auto:11)>; typename std::enable_if<Dune::IsIntegralConstant<decltype (Dune::Hybrid::size(declval<Range>()))>::value, int>::type <anonymous> = 0]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:316:82: required from ‘constexpr void Dune::Hybrid::forEach(Range&&, F&&) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]::<lambda(auto:11)>]’
BASEDIR/dune-common/dune/common/forloop.hh:74:57: required from ‘static void Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:548:76: required from ‘void Dune::ReferenceElement<ctype, dim>::initialize(unsigned int) [with ctype = double; int dim = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:699:9: required from ‘Dune::ReferenceElementContainer<ctype, dim>::ReferenceElementContainer() [with ctype = double; int dim = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:780:54: required from ‘static const Dune::ReferenceElementContainer<ctype, dim>& Dune::ReferenceElements<ctype, dim>::container() [with ctype = double; int dim = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:765:24: required from ‘static const Dune::ReferenceElement<ctype, dim>& Dune::ReferenceElements<ctype, dim>::simplex() [with ctype = double; int dim = 1]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/entitykey_inline.hh:135:51: required from ‘static Dune::DGFEntityKey<unsigned int> Dune::ElementFaceUtil::generateSimplexFace(const std::vector<unsigned int>&, int) [with int dim = 1]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/entitykey_inline.hh:157:53: required from here
BASEDIR/dune-common/dune/common/hybridutilities.hh:110:13: error: no match for ‘operator[]’ (operand types are ‘Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>’ and ‘std::integral_constant<long unsigned int, 0ul>’)
return c[i];
^
BASEDIR/dune-common/dune/common/hybridutilities.hh: In instantiation of ‘constexpr void Dune::Hybrid::Impl::forEachIndex(Range&&, F&&, std::integer_sequence<Index, i ...>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]::<lambda(auto:11)>; Index = long unsigned int; Index ...i = 0ul, 1ul]’:
BASEDIR/dune-common/dune/common/hybridutilities.hh:278:73: required from ‘constexpr void Dune::Hybrid::Impl::forEach(Range&&, F&&, Dune::PriorityTag<1ul>) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]::<lambda(auto:11)>; typename std::enable_if<Dune::IsIntegralConstant<decltype (Dune::Hybrid::size(declval<Range>()))>::value, int>::type <anonymous> = 0]’
BASEDIR/dune-common/dune/common/hybridutilities.hh:316:82: required from ‘constexpr void Dune::Hybrid::forEach(Range&&, F&&) [with Range = Dune::Std::integer_sequence<long unsigned int, 0ul, 1ul>; F = Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]::<lambda(auto:11)>]’
BASEDIR/dune-common/dune/common/forloop.hh:74:57: required from ‘static void Dune::ForLoop<Operation, first, last>::apply(Args&& ...) [with Args = {Dune::ReferenceElement<double, 1>&, std::tuple<std::vector<Dune::AffineGeometry<double, 1, 1>, std::allocator<Dune::AffineGeometry<double, 1, 1> > >, std::vector<Dune::AffineGeometry<double, 0, 1>, std::allocator<Dune::AffineGeometry<double, 0, 1> > > >&}; Operation = Dune::ReferenceElement<double, 1>::CreateGeometries; int first = 0; int last = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:548:76: required from ‘void Dune::ReferenceElement<ctype, dim>::initialize(unsigned int) [with ctype = double; int dim = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:699:9: required from ‘Dune::ReferenceElementContainer<ctype, dim>::ReferenceElementContainer() [with ctype = double; int dim = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:780:54: required from ‘static const Dune::ReferenceElementContainer<ctype, dim>& Dune::ReferenceElements<ctype, dim>::container() [with ctype = double; int dim = 1]’
BASEDIR/dune-geometry/dune/geometry/referenceelements.hh:765:24: required from ‘static const Dune::ReferenceElement<ctype, dim>& Dune::ReferenceElements<ctype, dim>::simplex() [with ctype = double; int dim = 1]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/entitykey_inline.hh:135:51: required from ‘static Dune::DGFEntityKey<unsigned int> Dune::ElementFaceUtil::generateSimplexFace(const std::vector<unsigned int>&, int) [with int dim = 1]’
BASEDIR/dune-grid/dune/grid/io/file/dgfparser/entitykey_inline.hh:157:53: required from here
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:96: error: invalid use of void expression
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: error: no matching function for call to ‘evaluateFoldExpression(<brace-enclosed initializer list>)’
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: note: candidate is:
BASEDIR/dune-common/dune/common/hybridutilities.hh:256:8: note: template<class T> void Dune::Hybrid::Impl::evaluateFoldExpression(std::initializer_list<_Tp>&&)
void evaluateFoldExpression(std::initializer_list<T>&&)
^
BASEDIR/dune-common/dune/common/hybridutilities.hh:256:8: note: template argument deduction/substitution failed:
BASEDIR/dune-common/dune/common/hybridutilities.hh:262:105: note: cannot convert ‘{<expression error>}’ (type ‘<brace-enclosed initializer list>’) to type ‘std::initializer_list<int>&&’
evaluateFoldExpression<int>({(f(Hybrid::elementAt(range, std::integral_constant<Index,i>())), 0)...});
^
gmake[2]: *** [lib/CMakeFiles/dunegrid.dir/__/dune/grid/io/file/dgfparser/dgfparser.cc.o] Error 1
gmake[1]: *** [lib/CMakeFiles/dunegrid.dir/all] Error 2
gmake: *** [all] Error 2
--- Failed to build dune-grid ---
Terminating dunecontrol due to previous errors!