diff options
author | Dejan Jovanović <dejan@cs.nyu.edu> | 2013-03-22 17:25:48 -0400 |
---|---|---|
committer | Dejan Jovanović <dejan@cs.nyu.edu> | 2013-03-22 17:25:48 -0400 |
commit | 17921b8fabea67fffd7d6a2a4b476dba06f3cb0c (patch) | |
tree | ca3bb4f24393615584ea45e84539726c610f86d1 /src/util/dense_map.h | |
parent | 36816ad2537a2e6163037e9592c513b9a69aa9dc (diff) |
compiles with
export CXXFLAGS='-std=gnu++0x' before configure
fails all regressions in the parser
Diffstat (limited to 'src/util/dense_map.h')
-rw-r--r-- | src/util/dense_map.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/dense_map.h b/src/util/dense_map.h index 222a761c3..b7d690811 100644 --- a/src/util/dense_map.h +++ b/src/util/dense_map.h @@ -98,7 +98,7 @@ public: return false; }else{ Assert(x < allocated()); - return d_posVector[x] != POSITION_SENTINEL; + return d_posVector[x] != +POSITION_SENTINEL; } } @@ -160,7 +160,7 @@ public: void pop_back() { Assert(!empty()); Key atBack = back(); - d_posVector[atBack] = POSITION_SENTINEL; + d_posVector[atBack] = +POSITION_SENTINEL; d_image[atBack] = T(); d_list.pop_back(); } @@ -195,7 +195,7 @@ public: void increaseSize(Key max){ Assert(max >= allocated()); - d_posVector.resize(max+1, POSITION_SENTINEL); + d_posVector.resize(max+1, +POSITION_SENTINEL); d_image.resize(max+1); } |