Hi, Should it be possible to use capnp::clone() to copy a DynamicStruct?
This code currently doesn't compile: #include <capnp/dynamic.h> #include <capnp/message.h> #include "foo.capnp.h" int main() { capnp::MallocMessageBuilder mb; auto root = mb.initRoot<Foo>(); auto a = root.asReader(); auto a2 = capnp::clone(a); // succeeds auto b = capnp::toDynamic(a); auto b2 = capnp::clone(b); // fails } ...but I'm not clear what it is about DynamicStructs that make them less copyable? Cheers, 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/ce287ada-fee5-4bed-b353-10c438136d40n%40googlegroups.com.