Hi all,
in C++ I currently use a google::protobuf::Map<std::string, std::string>
that I can easily copy into an std::map<std::string, std::string> using
iterators:
std::map<std::string, std::string> m{pm.my_map().begin(),
pm.my_map().end()};
I want to do the same for an std::pmr::map<std::pmr::string,
std::pmr::string>.
The iterator approach does not compile.
I can of course write a for loop and copy / insert each element
individually.
But is there a smarter, shorter way?
Thanks!
--
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/protobuf/b73fe6f7-539f-4b10-bd82-496d33454e80n%40googlegroups.com.