[dune-pdelab] parameter pack expansion error in powergridfunctionspace.hh

Eike Mueller E.Mueller at bath.ac.uk
Thu Jun 18 09:20:28 CEST 2015


Hi Joe,

thanks, that indeed fixes it. I attach a patch (let me know if you want me to submit a bug report, and/or if I can fix it myself).

Eike


________________________________________
From: Jö Fahlke <jorrit at jorrit.de>
Sent: 17 June 2015 19:28
To: Eike Mueller
Cc: Dominic Kempf; dune-pdelab at dune-project.org
Subject: Re: [dune-pdelab] parameter pack expansion error in powergridfunctionspace.hh

Am Wed, 17. Jun 2015, 12:22:06 +0000 schrieb Eike Mueller:
> Date: Wed, 17 Jun 2015 12:22:06 +0000
> From: Eike Mueller <E.Mueller at bath.ac.uk>
> To: Dominic Kempf <dominic.r.kempf at gmail.com>
> Cc: "dune-pdelab at dune-project.org" <dune-pdelab at dune-project.org>
>
> Hi Dominic,
>
>
> thanks. Steffen's post was from last year and based on icc 14.0. Intel claim that they would fix it, but I still get it with icc 15.0.
>
>
> Let's see what Steffen says when he is back.
>
>
> I can always fall back onto gcc.

Currently the constructor looks like this:
======================================================================
      template<typename... Children>
      PowerGridFunctionSpace(std::shared_ptr<Children>... children)
        : BaseT(children...)
        , ImplementationBase(Backend(),OrderingTag())
      {}
======================================================================

It should be possible to rewrite it as follows:
======================================================================
      template<typename Child0, typename... Children>
      PowerGridFunctionSpace(std::shared_ptr<Child0> child0,
                             std::shared_ptr<Children>... children)
        : BaseT(child0, children...)
        , ImplementationBase(Backend(),OrderingTag())
      {}
======================================================================

Then the first constructor argument no longer involves a parameter pack, which
should circumvent the problem according to intel.  Could you try whether that
solves your problem?

Regards,
Jö.

--
Jorrit (Jö) Fahlke, Institute for Computational und Applied Mathematics,
University of Münster, Orleans-Ring 10, D-48149 Münster
Tel: +49 251 83 35146 Fax: +49 251 83 32729

This message is protected by DoubleROT13 encryption
Attempting to decode it violates the DMCA/WIPO acts
-------------- next part --------------
A non-text attachment was scrubbed...
Name: icc_parameter_pack_bugfix.patch
Type: text/x-patch
Size: 780 bytes
Desc: icc_parameter_pack_bugfix.patch
URL: <https://lists.dune-project.org/pipermail/dune-pdelab/attachments/20150618/42ad4bc0/attachment.bin>


More information about the dune-pdelab mailing list