diff options
| author | Dan Goodliffe <daniel.goodliffe@pressassociation.com> | 2015-09-30 13:56:52 +0100 |
|---|---|---|
| committer | Dan Goodliffe <daniel.goodliffe@pressassociation.com> | 2015-09-30 13:56:52 +0100 |
| commit | 7ec6683874d60be3a62bdc0e2f4d3eba58b390d6 (patch) | |
| tree | ac83fae5a51bbfe2476ad95d80d09fab1e8bf79f /libadhocutil/unittests/testFactory.cpp | |
| parent | No need for plugin implementations to be const (diff) | |
| download | libadhocutil-7ec6683874d60be3a62bdc0e2f4d3eba58b390d6.tar.bz2 libadhocutil-7ec6683874d60be3a62bdc0e2f4d3eba58b390d6.tar.xz libadhocutil-7ec6683874d60be3a62bdc0e2f4d3eba58b390d6.zip | |
Use __VA_ARGS__ to remove need for global typedef in macro
Diffstat (limited to 'libadhocutil/unittests/testFactory.cpp')
| -rw-r--r-- | libadhocutil/unittests/testFactory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libadhocutil/unittests/testFactory.cpp b/libadhocutil/unittests/testFactory.cpp index 24f731f..7a94aa9 100644 --- a/libadhocutil/unittests/testFactory.cpp +++ b/libadhocutil/unittests/testFactory.cpp @@ -33,6 +33,10 @@ NAMEDFACTORY("a", ImplOfThing, BaseThingFactory); FACTORY(OtherImplOfThing, BaseThingFactory); INSTANTIATEFACTORY(BaseThing, int, std::string); +// Multiple factories in one compilation unit +INSTANTIATEFACTORY(BaseThing, std::string, std::string); +// Factories of things with commas +INSTANTIATEFACTORY(BaseThing, std::map<std::string, std::string>); BOOST_AUTO_TEST_CASE( ready ) { |
