Re: [capnproto] capnp Readers and Builders: how to write what I've read

2017-04-25 Thread vkruglikov
Thank you Kenton - it compiles without the `getRoot` call! -- You received this message because you are subscribed to the Google Groups "Cap'n Proto" group. To unsubscribe from this group and stop receiving emails from it, send an email to capnproto+unsubscr...@googlegroups.com. Visit this

Re: [capnproto] capnp Readers and Builders: how to write what I've read

2017-04-24 Thread 'Kenton Varda' via Cap'n Proto
You don't need the `.getRoot()` on the last line. Do: builder.setRoot(pyRegionImplProto); -Kenton On Mon, Apr 24, 2017 at 5:50 PM, wrote: > Hi Kenton, I got into a pickle trying to convert a reader into a builder > in C++. The relevant code looks like this: > > ```

Re: [capnproto] capnp Readers and Builders: how to write what I've read

2017-04-24 Thread vkruglikov
Hi Kenton, I got into a pickle trying to convert a reader into a builder in C++. The relevant code looks like this: ``` PyObject* Network::_readPyRegion(const std::string& moduleName, const std::string& className,