Skip to content

Instantly share code, notes, and snippets.

@bdonlan
Created October 28, 2008 00:39
Show Gist options
  • Save bdonlan/20253 to your computer and use it in GitHub Desktop.
Save bdonlan/20253 to your computer and use it in GitHub Desktop.
template<typename I>
bool visit(const T &l) const {
for (BOOST_AUTO_TPL(it, l.begin()); it != l.end(); it++) {
if (!it->value)
break;
qt->placeRegion(newDiv, it->r, it->value, false);
}
}
void operator()(const TermDivision &td) const {
visit(td.children);
}
void operator()(const OverflowDivision &od) const {
visit(od.children);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment