aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_contents.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-26 13:59:04 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-04-26 13:59:04 +0000
commit118de550d2dc5508ff4446bdf7f2ddf7b497b9ba (patch)
tree5ced2de062474cb8e6537e68d71cbc7c5a80e802 /doc/api/cplusplus/examples/example_contents.cc
parentf76a3a0a7b38b5a3652a9e9bcb13942483f7c53a (diff)
downloadpaludis-118de550d2dc5508ff4446bdf7f2ddf7b497b9ba.tar.gz
paludis-118de550d2dc5508ff4446bdf7f2ddf7b497b9ba.tar.xz
paludis::tr1:: is dead. We no longer support compilers that don't do tr1 (that means you, gcc-3).
Diffstat (limited to 'doc/api/cplusplus/examples/example_contents.cc')
-rw-r--r--doc/api/cplusplus/examples/example_contents.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/cplusplus/examples/example_contents.cc b/doc/api/cplusplus/examples/example_contents.cc
index 6bfae6890..69f956d89 100644
--- a/doc/api/cplusplus/examples/example_contents.cc
+++ b/doc/api/cplusplus/examples/example_contents.cc
@@ -75,11 +75,11 @@ int main(int argc, char * argv[])
"example_contents", "EXAMPLE_CONTENTS_OPTIONS", "EXAMPLE_CONTENTS_CMDLINE");
/* We start with an Environment, respecting the user's '--environment' choice. */
- tr1::shared_ptr<Environment> env(EnvironmentMaker::get_instance()->make_from_spec(
+ std::tr1::shared_ptr<Environment> env(EnvironmentMaker::get_instance()->make_from_spec(
CommandLine::get_instance()->a_environment.argument()));
/* Fetch package IDs for installed 'sys-apps/paludis'. */
- tr1::shared_ptr<const PackageIDSequence> ids(env->package_database()->query(
+ std::tr1::shared_ptr<const PackageIDSequence> ids(env->package_database()->query(
query::Matches(make_package_dep_spec().package(QualifiedPackageName("sys-apps/paludis"))) &
query::SupportsAction<InstalledAction>(),
qo_order_by_version));
@@ -100,7 +100,7 @@ int main(int argc, char * argv[])
/* Visit the contents key's value's entries with our visitor. We use
* indirect_iterator because value()->begin() and ->end() return
- * iterators to tr1::shared_ptr<>s rather than raw objects. */
+ * iterators to std::tr1::shared_ptr<>s rather than raw objects. */
ContentsPrinter p;
std::for_each(
indirect_iterator((*i)->contents_key()->value()->begin()),