[Dune] Warnings about FieldVector::size

Oliver Sander sander at mi.fu-berlin.de
Wed Aug 17 08:15:16 CEST 2011


Hi Markus!
I thought about other ways to warn the user, but couldn't really think
of a better one.  I don't find the warnings to obtrusive either, because
the warning doesn't not show up every time fvector.hh is included.
Instead (because of the single-inclusion guard) it shows up once for
each translation unit.

The warning cannot be switched off by default, because that would mean
breaking people's code on updates, and I have been told repeatedly
that that's a no-no.

best,
Oliver

Am 16.08.2011 15:20, schrieb Markus Blatt:
> Dear fellow developers,
>
> since Oliver's changes one gets a warning like "The FieldVector class
> exports is size by the enum member 'size'..." whenever fieldvector.hh
> is included, which is too often!
>
> IMHO this is rather annoying as I cannot use this warning to find
> calls to ::size in the code. Isn't there another way of warning people
> about the change?
>
> Cheers,
>
> Markus
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune




More information about the Dune mailing list