Commit 72e69b7f authored by Kenton Varda's avatar Kenton Varda

Allow initializing capnp::Request to nullptr.

parent 94946a09
......@@ -111,6 +111,7 @@ class Request: public Params::Builder {
public:
inline Request(typename Params::Builder builder, kj::Own<RequestHook>&& hook)
: Params::Builder(builder), hook(kj::mv(hook)) {}
inline Request(decltype(nullptr)): Params::Builder(nullptr) {}
RemotePromise<Results> send();
// Send the call and return a promise for the results.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment