Something like this should work: *(repeated_ptr_field.Add()) = msg; On Sun, Jul 28, 2019 at 6:06 AM Jagathish Saravanan <[email protected]> wrote:
> hi , I have an Message , how to add that message to the > RepeatedPtrField<Message> in c++. i.e., Adding a new Message to the list of > Message. > > -- > 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/b8e4e854-a9e6-42b1-864a-8e8c2a810dbe%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/b8e4e854-a9e6-42b1-864a-8e8c2a810dbe%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CADqAXr6ZaB5ACqMzFXPmMDwDndTE13uNqZ8deX%3DGLuh08PhZMA%40mail.gmail.com.
