Improve Thrift map deserialization code
authorMark Slee <mcslee@apache.org>
Wed, 30 Jan 2008 23:23:15 +0000 (23:23 +0000)
committerMark Slee <mcslee@apache.org>
Wed, 30 Jan 2008 23:23:15 +0000 (23:23 +0000)
commit61959f5d9deb0e3535ee727f0c3ca694f3b40173
tree1efc3b444fd8fc78d4beda4d510992d08954fca5
parentaa93451dbfd068c4e661e646b3e8a24f1f7ee29a
Improve Thrift map deserialization code

Summary: Instead of copy-constructing map values into the map, alter the code such that we insert default-constructed elements into the map and then deserialize them by reference.

Reviewed By: hzhao

Test Plan: Ran the test in test/cpp which include serialization and deserialization of nested maps.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665448 13f79535-47bb-0310-9956-ffa450edef68
compiler/cpp/src/generate/t_cpp_generator.cc
compiler/cpp/src/generate/t_cpp_generator.h