diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-25 07:37:59 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-25 07:37:59 +0000 |
commit | fcdad555eff58aec43107056393e707c473eb0a4 (patch) | |
tree | 4eb5599c423ad6faa1d6eacf08b9bce4d9ebb456 /decoder/small_vector.h | |
parent | f82319b54067bef668ea87b5022eba5ded09ba87 (diff) |
more comprehensible (but untested) edge/node filtering, awesome per-edge debugging streams
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@407 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/small_vector.h')
-rw-r--r-- | decoder/small_vector.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/decoder/small_vector.h b/decoder/small_vector.h index 4183cde2..7ed99e77 100644 --- a/decoder/small_vector.h +++ b/decoder/small_vector.h @@ -57,7 +57,8 @@ class SmallVector { SmallVector(const Self& o) : size_(o.size_) { if (size_ <= SV_MAX) { - for (int i = 0; i < SV_MAX; ++i) data_.vals[i] = o.data_.vals[i]; + std::memcpy(data_.vals,o.data_.vals,size_*sizeof(T)); +// for (int i = 0; i < size_; ++i) data_.vals[i] = o.data_.vals[i]; } else { capacity_ = size_ = o.size_; data_.ptr = new T[capacity_]; |