| 14 | namespace te = boost::te; |
| 15 | |
| 16 | struct Drawable : te::poly<Drawable> { |
| 17 | using te::poly<Drawable>::poly; |
| 18 | |
| 19 | void draw(std::ostream &out) const { |
| 20 | te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out); |
| 21 | } |
| 22 | }; |
| 23 | |
| 24 | struct Square { |
| 25 | void draw(std::ostream &out) const { out << "Square"; } |
nothing calls this directly
no outgoing calls
no test coverage detected