[Dune-devel] [Dune-Commit] [Commit] dune-grid - db187f4: [YaspGrid] Fix compilation problem on GCC 4.4

Markus Blatt markus at dr-blatt.de
Mon Sep 29 17:39:55 CEST 2014


On Mon, Sep 29, 2014 at 03:39:01PM +0200, Steffen Müthing wrote:
>        std::bitset<dim> operator()(int index, int cc) const
>        {
> -        std::bitset<dim> result(0);
> +        std::bitset<dim> result(0ull);

I already said this on other occasions and will repeat myself over an
over again: 
Why such cryptic instantiations? Is there anything wrong with using the
default zero initialization:

std::bitset<dim> result();

Markus
-- 
Do you need more support with DUNE or HPC in general? 

Dr. Markus Blatt - HPC-Simulation-Software & Services http://www.dr-blatt.de
Hans-Bunte-Str. 8-10, 69123 Heidelberg, Germany
Tel.: +49 (0) 160 97590858
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune-devel/attachments/20140929/d6a8c724/attachment.sig>


More information about the Dune-devel mailing list