Copying strings by value is rather inefficient, so the idea is to discourage
it.
That said, there is a patch outstanding that implements
a SerializeAsString() method which does what you want.
On Fri, Nov 14, 2008 at 11:07 AM, <[EMAIL PROTECTED]> wrote:
>
> Can we please have a ToString that retu
Can we please have a ToString that returns a string in PB.
I'm tired of writing the following code:
string annoying_tmp;
my_pb.AppendToString(annoying_tmp);
SomeFunctionThatWritesAString(annoying_tmp);
When I could be doing:
SomeFunctionThatWritesAString(mt_pb.ToString());
Many classes at google