diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-17 19:04:55 +0100 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-09-17 19:04:55 +0100 |
| commit | 0c1b1f8eac847ada60e702533ff44aec7c16da41 (patch) | |
| tree | 160d0edb452ff0a6d0203a4856fce270f70986c6 /libadhocutil/unittests/testFactory.cpp | |
| parent | Add doxygen comments (diff) | |
| download | libadhocutil-0c1b1f8eac847ada60e702533ff44aec7c16da41.tar.bz2 libadhocutil-0c1b1f8eac847ada60e702533ff44aec7c16da41.tar.xz libadhocutil-0c1b1f8eac847ada60e702533ff44aec7c16da41.zip | |
Add instantiation macros
Diffstat (limited to 'libadhocutil/unittests/testFactory.cpp')
| -rw-r--r-- | libadhocutil/unittests/testFactory.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libadhocutil/unittests/testFactory.cpp b/libadhocutil/unittests/testFactory.cpp index 9b463f1..6c0a5d5 100644 --- a/libadhocutil/unittests/testFactory.cpp +++ b/libadhocutil/unittests/testFactory.cpp @@ -11,6 +11,7 @@ using namespace AdHoc; class BaseThing { public: BaseThing(int, const std::string &){} + virtual ~BaseThing() = default; virtual void execute() const = 0; }; @@ -31,6 +32,8 @@ typedef AdHoc::Factory<BaseThing, int, std::string> BaseThingFactory; NAMEDFACTORY("a", ImplOfThing, BaseThingFactory); FACTORY(OtherImplOfThing, BaseThingFactory); +INSTANIATEFACTORY(BaseThing, int, std::string); + BOOST_AUTO_TEST_CASE( ready ) { BOOST_REQUIRE_EQUAL(2, PluginManager::getDefault()->count()); |
