summaryrefslogtreecommitdiff
path: root/decoder
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 20:16:23 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 20:16:23 +0000
commitfe976cf98c3306bda017d6ddd2f519922d5354d7 (patch)
tree820bb3ac22132a06ef96fdc3bd73ed06c71322c3 /decoder
parent6bfd92f2980e5730d2895845729c25e5a8604a51 (diff)
small_vector
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@290 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder')
-rw-r--r--decoder/small_vector.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/decoder/small_vector.h b/decoder/small_vector.h
index 86d3b0b3..2c61ab3a 100644
--- a/decoder/small_vector.h
+++ b/decoder/small_vector.h
@@ -171,14 +171,13 @@ class SmallVector {
}
private:
- uint16_t capacity_; // only defined when size_ >= __SV_MAX_STATIC
- uint16_t size_;
union StorageType {
int vals[__SV_MAX_STATIC];
int* ptr;
};
StorageType data_;
-
+ uint16_t size_;
+ uint16_t capacity_; // only defined when size_ >= __SV_MAX_STATIC
};
inline bool operator!=(const SmallVector& a, const SmallVector& b) {