Thanks a lot for the reply. I understood that part. Currently in the .proto
file, there is a string definition which gets translated to std::string.
What we actually need is a typedef which can be configured as per the end
user wish, before building the protobuf. But can i get some assistance on
how to implement the same.
On Sat, Jul 9, 2011 at 5:02 AM, Jason Hsueh <jas...@google.com> wrote:
> We don't support this at this time - the primary problem is that specifying
> an allocator for C++ string's produces a completely new type. This means
> allocators can't simply be injected into a particularly message instance;
> instead it would have to be part of the message definition.
> On Wed, Jul 6, 2011 at 6:28 PM, Gokul <gokul...@gmail.com> wrote:
>> In the application, i am working on, we are managing the memory of
>> strings using allocators. But i find that the protobuf uses strings
>> without any allocator support. Is there a plan to provide allocator
>> support for strings in future?
>> Or can someone guide me on how to go about implementing this change?
>> I would need a typedef somewhere to mention the string type and the
>> library should generate the appropriate code for it.
>> You received this message because you are subscribed to the Google Groups
>> "Protocol Buffers" group.
>> To post to this group, send email to firstname.lastname@example.org.
>> To unsubscribe from this group, send email to
>> For more options, visit this group at
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to email@example.com.
To unsubscribe from this group, send email to
For more options, visit this group at