[dune-pdelab] const overloading ambiguity in powercompositegridfunctionspacebase.hh

Christoph Grüninger christoph.grueninger at iws.uni-stuttgart.de
Thu Jan 5 16:00:55 CET 2012


Hi,
I tried to compile dune-pdelab-howto but the compilation stopped while 
compiling example06.cc with the error message below. It seems to be an 
ambiguity with const overloading.

Bye
Christoph


/temp/gruenich/dune/complete/dune-pdelab/dune/pdelab/backend/ovlpistlsolverbackend.hh:524:109: 
    instanziiert von »Dune::PDELab::ISTLBackend_OVLP_BCGS_SSORk<GFS, 
CC>::ISTLBackend_OVLP_BCGS_SSORk(const GFS&, const CC&, unsigned int, 
int, int) [with GFS = 
Dune::PDELab::CompositeGridFunctionSpace<Dune::PDELab::ComponentBlockwiseOrderingTag<>, 
Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const 
Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, 
Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, 
Dune::PDELab::OverlappingConformingDirichletConstraints, 
Dune::PDELab::ISTLVectorBackend<2>, 
Dune::PDELab::GridFunctionGeneralMapper>, 
Dune::PDELab::GridFunctionSpace<Dune::GridView<Dune::DefaultLeafGridViewTraits<const 
Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, 
Dune::PDELab::Q1LocalFiniteElementMap<double, double, 2>, 
Dune::PDELab::OverlappingConformingDirichletConstraints, 
Dune::PDELab::ISTLVectorBackend<2>, 
Dune::PDELab::GridFunctionGeneralMapper> >, CC = 
Dune::PDELab::ConstraintsTransformation<long unsigned int, double>]«
example06_Q1Q1.hh:70:24:    instanziiert von »void example06_Q1Q1(const 
GV&, double, double, double) [with GV = 
Dune::GridView<Dune::DefaultLeafGridViewTraits<const Dune::YaspGrid<2>, 
(Dune::PartitionIteratorType)4u> >]«
example06.cc:100:43:   instanziiert von hier
/temp/gruenich/dune/complete/dune-pdelab/dune/pdelab/gridfunctionspace/powercompositegridfunctionspacebase.hh:127:43: 
Fehler: Abfrage des Elementes »back« ist mehrdeutig
/temp/gruenich/dune/complete/dune-pdelab/dune/pdelab/common/typetree/fixedcapacitystack.hh:84:16: 
Fehler: Kandidaten sind: const T& 
Dune::PDELab::TypeTree::FixedCapacityStackView<T>::back() const [with T 
= long unsigned int]
/temp/gruenich/dune/complete/dune-pdelab/dune/pdelab/common/typetree/fixedcapacitystack.hh:78:10: 
Fehler:                  T& 
Dune::PDELab::TypeTree::FixedCapacityStackView<T>::back() [with T = long 
unsigned int]
/usr/include/c++/4.6/array:185:7: Fehler:                  const 
value_type& std::array<_Tp, _Nm>::back() const [with _Tp = long unsigned 
int, long unsigned int _Nm = 2u, std::array<_Tp, _Nm>::const_reference = 
const long unsigned int&, std::array<_Tp, _Nm>::value_type = long 
unsigned int]
/usr/include/c++/4.6/array:181:7: Fehler: 
std::array<_Tp, _Nm>::value_type& std::array<_Tp, _Nm>::back() [with _Tp 
= long unsigned int, long unsigned int _Nm = 2u, std::array<_Tp, 
_Nm>::reference = long unsigned int&, std::array<_Tp, _Nm>::value_type = 
long unsigned int]





More information about the dune-pdelab mailing list