commit | 8d4b1cc3ab706c8116e279782a1773f5b011860a | [log] [tgz] |
---|---|---|
author | Mark Slee <mcslee@apache.org> | Thu Jan 31 00:06:29 2008 +0000 |
committer | Mark Slee <mcslee@apache.org> | Thu Jan 31 00:06:29 2008 +0000 |
tree | ab4ee06be3e218d03ae8114c40fd0e551125351f | |
parent | 61959f5d9deb0e3535ee727f0c3ca694f3b40173 [diff] |
Improve C++ vector deserialization Summary: Use std::vector::resize() method to default construct placeholder elements. Then grab references via operator[] to deserialize directly into the vector, instead of copy-constructing elements in. Reviewed By: hzhao Test Plan: test/cpp contains list serialization/deserialization checks git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665449 13f79535-47bb-0310-9956-ffa450edef68