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-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_dep_spec_flattener.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_dep_spec_flattener.cc')
-rw-r--r--doc/api/cplusplus/examples/example_dep_spec_flattener.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
index 2b4d3bb12..52eb8b22c 100644
--- a/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
+++ b/doc/api/cplusplus/examples/example_dep_spec_flattener.cc
@@ -38,11 +38,11 @@ int main(int argc, char * argv[])
"example_dep_spec_flattener", "EXAMPLE_DEP_SPEC_FLATTENER_OPTIONS", "EXAMPLE_DEP_SPEC_FLATTENER_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 all installed packages. */
- tr1::shared_ptr<const PackageIDSequence> ids(
+ std::tr1::shared_ptr<const PackageIDSequence> ids(
env->package_database()->query(
query::SupportsAction<InstalledAction>(),
qo_order_by_version));
@@ -64,7 +64,7 @@ int main(int argc, char * argv[])
(*i)->provide_key()->value()->accept(provides);
/* The results are available through DepSpecFlattener::begin()
- * and ::end(). These return an iterator to a tr1::shared_ptr<>,
+ * and ::end(). These return an iterator to a std::tr1::shared_ptr<>,
* so we use indirect_iterator to add a level of dereferencing.*/
cout << " " << left << setw(24) << "Provides:" << " "
<< join(indirect_iterator(provides.begin()), indirect_iterator(provides.end()), " ")