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
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();