aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-12 19:29:09 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-12-13 00:50:37 +0000
commit3ff3aa41ac733cb8a0c0d7e532b3cdd56673ddd0 (patch)
tree1159c5580577715e4279de0c8a39fe38738ae325 /doc/api/cplusplus/examples/example_dep_spec_flattener.cc
parentc4b5049c5c9064c0f694440f91136695b6e7e193 (diff)
downloadpaludis-3ff3aa41ac733cb8a0c0d7e532b3cdd56673ddd0.tar.gz
paludis-3ff3aa41ac733cb8a0c0d7e532b3cdd56673ddd0.tar.xz
New, simpler visitor framework.
Convert everything except the tree things, to begin with.
Diffstat (limited to 'doc/api/cplusplus/examples/example_dep_spec_flattener.cc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec_flattener.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
index d46acccc6..430232ed8 100644
--- a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
@@ -83,15 +83,15 @@ int main(int argc, char * argv[])
/* And again for restricts. There's no global restrict key, since
* it has no meaning outside of the repositories that support it.
* Instead, we use PackageID::find_metadata to see if the key we
- * want exists, and then visitor_cast<> to see whether it's of a
- * suitable type (the key could be something other than a
+ * want exists, and then simple_visitor_cast<> to see whether it's
+ * of a suitable type (the key could be something other than a
* MetadataSpecTreeKey<PlainTextSpecTree>). */
if ((*i)->end_metadata() != (*i)->find_metadata("RESTRICT") &&
- visitor_cast<const MetadataSpecTreeKey<PlainTextSpecTree> >(**(*i)->find_metadata("RESTRICT")))
+ simple_visitor_cast<const MetadataSpecTreeKey<PlainTextSpecTree> >(**(*i)->find_metadata("RESTRICT")))
{
DepSpecFlattener<PlainTextSpecTree, PlainTextDepSpec> restricts(env.get());
- visitor_cast<const MetadataSpecTreeKey<PlainTextSpecTree> >(
+ simple_visitor_cast<const MetadataSpecTreeKey<PlainTextSpecTree> >(
**(*i)->find_metadata("RESTRICT"))->value()->accept(restricts);
cout << " " << left << setw(24) << "Restricts:" << " "