diff options
author | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-11-05 15:45:53 +0000 |
---|---|---|
committer | jthorn <jthorn@f88db872-0e4f-0410-b76b-b9085cfa78c5> | 2002-11-05 15:45:53 +0000 |
commit | 570aca970ee267cab8f59553b38a066aa2d948d6 (patch) | |
tree | 82c78a302e0c26360530201df00ad66e05521729 /src/patch/coords.hh | |
parent | fce52ffe3b32b17e99a26e5984912621f2425def (diff) |
change to the "enum hack" for in-class static constants
because some systems don't grok them properly (linker errors )
git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@885 f88db872-0e4f-0410-b76b-b9085cfa78c5
Diffstat (limited to 'src/patch/coords.hh')
-rw-r--r-- | src/patch/coords.hh | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/patch/coords.hh b/src/patch/coords.hh index f3fd94a..8c16f5b 100644 --- a/src/patch/coords.hh +++ b/src/patch/coords.hh @@ -221,13 +221,14 @@ namespace local_coords typedef int coords_set; -static const int coords_set_mu = 0x1; -static const int coords_set_nu = 0x2; -static const int coords_set_phi = 0x4; - -static const int coords_set_empty = 0x0; -static const int coords_set_all - = coords_set_mu | coords_set_nu | coords_set_phi; +enum { + coords_set_mu = 0x1, + coords_set_nu = 0x2, + coords_set_phi = 0x4, + + coords_set_empty = 0x0, + coords_set_all = coords_set_mu | coords_set_nu | coords_set_phi // no comma + }; // human-readable coordinate names for debugging etc const char* name_of_coords_set(coords_set S); |