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

Christian Engwer christian.engwer at uni-muenster.de
Fri Nov 25 16:07:40 CET 2011


On Thu, Nov 24, 2011 at 04:14:59PM +0100, Ansgar Burchardt wrote:
> 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.

but constexpr isn't backward compatible.

We should move the initialization out of the class body.

Christian

> 
> Ansgar
> 
> _______________________________________________
> dune-pdelab mailing list
> dune-pdelab at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-pdelab
> 




More information about the dune-pdelab mailing list