From 0b20876a836bcc64d09f056b10a6efdc0a34e0b3 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 13 Jul 2015 12:58:21 -0400 Subject: [PATCH] journal: add default constructor to Future Signed-off-by: Jason Dillaman --- src/journal/Future.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/journal/Future.h b/src/journal/Future.h index 3ded9f6d9011a..88ad436ef2fba 100644 --- a/src/journal/Future.h +++ b/src/journal/Future.h @@ -20,8 +20,13 @@ class Future { public: typedef boost::intrusive_ptr FutureImplPtr; + Future() {} Future(const FutureImplPtr &future_impl) : m_future_impl(future_impl) {} + inline bool is_valid() const { + return m_future_impl; + } + void flush(Context *on_safe); void wait(Context *on_safe); -- 2.39.5