Re: [capnproto] Can't put C++ Client object in std::map

2021-12-01 Thread 'Kenton Varda' via Cap'n Proto
This is arguably a bug in the C++ standard library, but the reason it hits KJ particularly hard is because of KJ's philosophy about constness: https://github.com/capnproto/capnproto/blob/master/style-guide.md#constness In particular: - Constness should be transitive. This implies that copying

[capnproto] Can't put C++ Client object in std::map

2021-12-01 Thread Jens Alfke
Hi! I'm getting started with capnp, using C++ bindings (with C++17 compiled by Clang 12.) I'm having trouble storing remote object references, i.e. xx::Client objects, in STL collections. For example: std::map foobars; ... Foobar::Client c = promise.wait(waitScope).getFoobar();