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 | 410cc38baef914cdc0841a2e8d5a84098e48be49 (patch) | |
tree | 5421cec674a71614544ce2705a37e3badc243d70 /decoder/small_vector.h | |
parent | f234fd50ce8a6f8a006b0f770cca5170a55232f9 (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_]; |