From d85201036815a054f4a8563f539fef525a8e4c68 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 26 Sep 2015 02:59:34 +0100 Subject: Add macro to instantiate factories that take no parameters --- libadhocutil/factory.impl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libadhocutil/factory.impl.h b/libadhocutil/factory.impl.h index c3b52a5..c6d4719 100644 --- a/libadhocutil/factory.impl.h +++ b/libadhocutil/factory.impl.h @@ -23,6 +23,11 @@ namespace AdHoc { } } +#define INSTANTIATEVOIDFACTORY(Base) \ + template class AdHoc::Factory; \ + typedef AdHoc::Factory FactoryType; \ + INSTANTIATEPLUGINOF(FactoryType) + #define INSTANTIATEFACTORY(Base, ...) \ template class AdHoc::Factory; \ typedef AdHoc::Factory FactoryType; \ -- cgit v1.2.3