| 28 | #include <wx/dc.h> |
| 29 | |
| 30 | void WidthHelper::Age() { |
| 31 | for (auto it = begin(widths), e = end(widths); it != e; ) { |
| 32 | if (it->second.age == age) |
| 33 | ++it; |
| 34 | else |
| 35 | it = widths.erase(it); |
| 36 | } |
| 37 | ++age; |
| 38 | } |
| 39 | |
| 40 | int WidthHelper::operator()(boost::flyweight<std::string> const& str) { |
| 41 | if (str.get().empty()) return 0; |