[Dune] [Dune-Commit] dune-common r6255 - trunk/dune/common

Jö Fahlke jorrit at jorrit.de
Sun Nov 28 16:26:08 CET 2010


Am Wed, 24. Nov 2010, 15:07:11 +0100 schrieb christi at dune-project.org:
> Author: christi
> Date: 2010-11-24 15:07:10 +0100 (Wed, 24 Nov 2010)
> New Revision: 6255
> 
> Modified:
>    trunk/dune/common/geometrytype.hh
> Log:
> From the metting minutes:
> - GeometryType vs. topologyId

[...]

>          /** \brief Make a pyramid */
> -        void makePyramid() {basicType_ = pyramid;  dim_ = 3;}
> +        void makePyramid() {
> +            none_  = false;
> +            dim_ = 3;
> +            topologyId_ = 0b0011;

Binary literals are a gcc-extension; they are neither in C99, nor C++ 2003,
nor C++0x.  They fail for instance with g++-4.1.  I have no idea how likely
they are to work with non-gcc compilers.

Bye,
Jö.

-- 
Cernlib: turns your plain old PC into a quantum computer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20101128/1b01c90d/attachment.sig>


More information about the Dune mailing list