diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-26 02:59:34 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-26 02:59:34 +0100 |
commit | d85201036815a054f4a8563f539fef525a8e4c68 (patch) | |
tree | 83981a493b9e53227f38298aa311c644c6e1a26d | |
parent | Fix typo in macro name (diff) | |
download | libadhocutil-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.h | 5 |
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; \ |