I want to serialize a hash_multimap, does protocal buffers support it ? I have tried boost serializaitn but it has header file confusion about hash_multimap so I want to try google protocol buffers.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There’s a fair bit of boilerplate coding that goes with using protocol buffers, and you need to run their protoc compiler to generate the actual C++ from the .proto files, but aside from that they’re great.
Here’s an example of how you’d serialise and parse a std::hash_multimap
my_hash_multimap.proto
main.cpp