[Dune] ALU* #define
Oleh Krehel
krehel at am.uni-erlangen.de
Wed Nov 9 13:05:07 CET 2011
Dear DUNE developers,
I've come across this code snippet:
./dune-grid/dune/grid/alugrid/2d/alu2dinclude.hh:32:#define ALU2DSPACE
ALU2DSPACENAME ::
./dune-grid/dune/grid/alugrid/2d/alu2dinclude.hh:35:#define
ALU2DSPACENAME ALU2DGrid
Is there a reason it can't be replaced with
namespace ALU2DSPACE = ALU2DGrid; ?
This way constructions like
switch( elementType )
{
case ALU2DSPACE triangle:
//...
break;
case ALU2DSPACE quadrilateral:
would be made more legible.
best regards,
Oleh Krehel
More information about the Dune
mailing list