summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-26 02:59:34 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-26 02:59:34 +0100
commitd85201036815a054f4a8563f539fef525a8e4c68 (patch)
tree83981a493b9e53227f38298aa311c644c6e1a26d
parentFix typo in macro name (diff)
downloadlibadhocutil-d85201036815a054f4a8563f539fef525a8e4c68.tar.bz2
libadhocutil-d85201036815a054f4a8563f539fef525a8e4c68.tar.xz
libadhocutil-d85201036815a054f4a8563f539fef525a8e4c68.zip
Add macro to instantiate factories that take no parameters
-rw-r--r--libadhocutil/factory.impl.h5
1 files changed, 5 insertions, 0 deletions
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<Base>; \
+ typedef AdHoc::Factory<Base> FactoryType; \
+ INSTANTIATEPLUGINOF(FactoryType)
+
#define INSTANTIATEFACTORY(Base, ...) \
template class AdHoc::Factory<Base, __VA_ARGS__>; \
typedef AdHoc::Factory<Base, __VA_ARGS__> FactoryType; \