summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2015-09-20 20:02:47 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2015-09-20 20:02:47 +0100
commitec3c09333f68ad1790896f42ccc650080a8c7d9d (patch)
tree0ff332f3be90a0bf54b72734150b81bbd66965af
parentMacro for instantiating plug-in resolver (diff)
downloadlibadhocutil-ec3c09333f68ad1790896f42ccc650080a8c7d9d.tar.bz2
libadhocutil-ec3c09333f68ad1790896f42ccc650080a8c7d9d.tar.xz
libadhocutil-ec3c09333f68ad1790896f42ccc650080a8c7d9d.zip
Instantiate the right plug-in type for factories
-rw-r--r--libadhocutil/factory.impl.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libadhocutil/factory.impl.h b/libadhocutil/factory.impl.h
index 5aefba4..9320419 100644
--- a/libadhocutil/factory.impl.h
+++ b/libadhocutil/factory.impl.h
@@ -25,7 +25,8 @@ namespace AdHoc {
#define INSTANIATEFACTORY(Base, ...) \
template class AdHoc::Factory<Base, __VA_ARGS__>; \
- INSTANIATEPLUGINOF(Base)
+ typedef AdHoc::Factory<Base, __VA_ARGS__> FactoryType; \
+ INSTANIATEPLUGINOF(FactoryType)
#endif