| 19 | }; |
| 20 | |
| 21 | class App { |
| 22 | public: |
| 23 | explicit App(const Drawable drawable) : drawable{drawable} {} |
| 24 | void draw(std::ostream& out) const { drawable(out); } |
| 25 | |
| 26 | private: |
| 27 | const Drawable drawable; |
| 28 | }; |
| 29 | |
| 30 | struct Square { |
| 31 | void operator()(std::ostream& out) const { out << "Square"; } |
nothing calls this directly
no outgoing calls
no test coverage detected