Commit 55ab49d0 authored by Kenton Varda's avatar Kenton Varda

Fix #182.

parent 554e7a0e
......@@ -703,7 +703,10 @@ struct IdentityFunc<void> {
};
template <>
struct IdentityFunc<Promise<void>> {
inline Promise<void> operator()() const { return READY_NOW; }
Promise<void> operator()() const;
// This can't be inline because it will make the translation unit depend on kj-async. Awkwardly,
// Cap'n Proto relies on being able to include this header without creating such a link-time
// dependency.
};
} // namespace _ (private)
......
......@@ -941,5 +941,9 @@ void AdapterPromiseNodeBase::onReady(Event& event) noexcept {
onReadyEvent.init(event);
}
// -------------------------------------------------------------------
Promise<void> IdentityFunc<Promise<void>>::operator()() const { return READY_NOW; }
} // namespace _ (private)
} // namespace kj
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