From cfe3467c39a79be7ce1e8d6c235984b2037a3e6b Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Thu, 9 Apr 2015 07:39:00 +1000 Subject: [PATCH] Provide a user-delcared stub_pmda constructor Clang correctly picked up this error. --- test/unit/src/test_pmda.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/src/test_pmda.cpp b/test/unit/src/test_pmda.cpp index 888836f..48f2399 100644 --- a/test/unit/src/test_pmda.cpp +++ b/test/unit/src/test_pmda.cpp @@ -24,6 +24,10 @@ class stub_pmda : public pcp::pmda { public: pcp::metrics_description supported_metrics; + // Since we use a const stub_pmda in at least one test, C++ requires us to + // provide a user-declared constructor. + stub_pmda() { } + virtual std::string get_pmda_name() const { return "stub"; }