Skip to content

Commit

Permalink
Provide a user-delcared stub_pmda constructor
Browse files Browse the repository at this point in the history
Clang correctly picked up this error.
  • Loading branch information
pcolby committed Apr 8, 2015
1 parent af388d9 commit cfe3467
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/unit/src/test_pmda.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit cfe3467

Please sign in to comment.