aboutsummaryrefslogtreecommitdiff
path: root/doc/api/cplusplus/examples/example_version_spec.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-03-22 15:17:45 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-03-22 15:17:24 +0000
commit7d0466af57231a0b727f4a619434fb80bbbbc5ff (patch)
tree31c12cce3c043d30bf29b44cd5606b39c09cbd08 /doc/api/cplusplus/examples/example_version_spec.cc
parente025e1b8be908dccb561b4e11e426ac84f3f5561 (diff)
downloadpaludis-7d0466af57231a0b727f4a619434fb80bbbbc5ff.tar.gz
paludis-7d0466af57231a0b727f4a619434fb80bbbbc5ff.tar.xz
VersionSpecOptions(), but don't use them
Diffstat (limited to 'doc/api/cplusplus/examples/example_version_spec.cc')
-rw-r--r--doc/api/cplusplus/examples/example_version_spec.cc20
1 files changed, 11 insertions, 9 deletions
diff --git a/doc/api/cplusplus/examples/example_version_spec.cc b/doc/api/cplusplus/examples/example_version_spec.cc
index 9b9fcc8e7..a6048d794 100644
--- a/doc/api/cplusplus/examples/example_version_spec.cc
+++ b/doc/api/cplusplus/examples/example_version_spec.cc
@@ -36,16 +36,18 @@ int main(int argc, char * argv[])
CommandLine::get_instance()->run(argc, argv,
"example_version_spec", "EXAMPLE_VERSION_SPEC_OPTIONS", "EXAMPLE_VERSION_SPEC_CMDLINE");
- /* Make a set of versions */
+ /* Make a set of versions. Use user_version_spec_options() for the
+ * options parameter for VersionSpec's constructor for handling any
+ * user-inputted data. */
std::set<VersionSpec> versions;
- versions.insert(VersionSpec("1.0"));
- versions.insert(VersionSpec("1.1"));
- versions.insert(VersionSpec("1.2"));
- versions.insert(VersionSpec("1.2-r1"));
- versions.insert(VersionSpec("2.0"));
- versions.insert(VersionSpec("2.0-try1"));
- versions.insert(VersionSpec("2.0-scm"));
- versions.insert(VersionSpec("9999"));
+ versions.insert(VersionSpec("1.0", user_version_spec_options()));
+ versions.insert(VersionSpec("1.1", user_version_spec_options()));
+ versions.insert(VersionSpec("1.2", user_version_spec_options()));
+ versions.insert(VersionSpec("1.2-r1", user_version_spec_options()));
+ versions.insert(VersionSpec("2.0", user_version_spec_options()));
+ versions.insert(VersionSpec("2.0-try1", user_version_spec_options()));
+ versions.insert(VersionSpec("2.0-scm", user_version_spec_options()));
+ versions.insert(VersionSpec("9999", user_version_spec_options()));
/* For each version... */
for (std::set<VersionSpec>::const_iterator v(versions.begin()), v_end(versions.end()) ;