[dune-pdelab] dune-pdelab-howto: two-phase example no longer build with gcc-4.6.1

Ansgar Burchardt ansgar.burchardt at iwr.uni-heidelberg.de
Thu Nov 24 16:14:59 CET 2011


Hi,

the two-phase example no longer builds with gcc 4.6.1 (Ubuntu 11.10):

dnaplmfd.cc:62:26: error: 'constexpr' needed for in-class initialization 
of static data member 'const double 
TwoPhaseParameter<Dune::GridView<Dune::DefaultLeafGridViewTraits<const 
Dune::YaspGrid<2>, (Dune::PartitionIteratorType)4u> >, double>::eps1' of 
non-integral type

It works when using "constexpr" instead of "const" in the referenced 
line and the line below.

Ansgar




More information about the dune-pdelab mailing list