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