Greetings,
I have a *nuisance *issue with the protoc generator that i am trying to
resolve and hope that the group might have a solution. Protoc is
generation inline methods that provide the internal size of a protobuf map
that is generated as a C+ 'int' return instead of the size_t type of the
C++ map i.e.:
// map<uint32, .My.Grpc.Map_t> myMap = 2;
inline int MyNameSpace::_internal_mymap_size() const {
return _internal_mymap().size();
}
This generates 'possible data loss' type conversion warning messages during
compilations that i prefer to track during system development/builds. For
consistency (hobgoblin), my preference would be to see protoc generate C++
code using size_t as the return type for the capacity of the protobuf
generated Map class. Any suggestions?
--
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 visit
https://groups.google.com/d/msgid/protobuf/e3778d63-8d54-496e-ba0f-7949e786a7d3n%40googlegroups.com.