| 75 | }; |
| 76 | |
| 77 | struct DrawableDeclare : te::poly<DrawableDeclare> { |
| 78 | using te::poly<DrawableDeclare>::poly; |
| 79 | |
| 80 | void draw(std::ostream &out) const { |
| 81 | te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out); |
| 82 | } |
| 83 | }; |
| 84 | |
| 85 | test should_erase_and_declare_call = [] { |
| 86 | DrawableDeclare drawable{Square{}}; |
nothing calls this directly
no outgoing calls
no test coverage detected