From: Patrick Donnelly Date: Sun, 29 Jul 2018 01:12:13 +0000 (-0700) Subject: common: add templated Context factory X-Git-Tag: v14.0.1~575^2~7 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=954e6596af5f39316ded5b0c677e7b2b3015d3f6;p=ceph-ci.git common: add templated Context factory For use to create Contexts only when needed. Signed-off-by: Patrick Donnelly --- diff --git a/src/include/Context.h b/src/include/Context.h index a801578a598..4cd77850cb6 100644 --- a/src/include/Context.h +++ b/src/include/Context.h @@ -492,6 +492,13 @@ private: boost::function m_callback; }; +template +class ContextFactory { +public: + virtual ~ContextFactory() {} + virtual ContextType *build() = 0; +}; + #undef mydout #endif