Hi Vaci, `anyReader.as<capnp::DynamicStruct>(structSchema)` should do it.
-Kenton On Tue, Nov 30, 2021 at 2:54 PM Vaci <v...@vaci.org> wrote: > Apologies if there is an obvious answer, but f I have a > capnp::StructSchema, and a capnp::AnyStruct::Reader, then can I create a > capnp::DynamicStruct::Reader from them, and if so, how? > > Thanks > Vaci > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/capnproto/1de9997d-b015-4ce8-bf32-bf08dce167f4n%40googlegroups.com > <https://groups.google.com/d/msgid/capnproto/1de9997d-b015-4ce8-bf32-bf08dce167f4n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/capnproto/CAJouXQ%3DsP11EOK8tv5DnMuVWL2PW6FRU2kT%3Dk%2BNW%3DGn_XTpWtQ%40mail.gmail.com.