summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/config
diff options
context:
space:
mode:
authorschodet2005-04-05 22:35:04 +0000
committerschodet2005-04-05 22:35:04 +0000
commitc2f500b0b024100794ffdde6ab46006931b261c1 (patch)
treec14faa57c1c94e61e239e60cd8dec9a81a253dc0 /2005/i/robert/src/config
parent426194305cecf47c4f6ee27d6c2f3431de61f630 (diff)
Youpi, vive list_output_ostream.hh.
Diffstat (limited to '2005/i/robert/src/config')
-rw-r--r--2005/i/robert/src/config/test_config_data.cc15
1 files changed, 1 insertions, 14 deletions
diff --git a/2005/i/robert/src/config/test_config_data.cc b/2005/i/robert/src/config/test_config_data.cc
index 49fc425..d214d4f 100644
--- a/2005/i/robert/src/config/test_config_data.cc
+++ b/2005/i/robert/src/config/test_config_data.cc
@@ -35,20 +35,7 @@ main (int argc, char **argv)
{
ConfigData cd (argc, argv);
for (int i = 1; i < argc; ++i)
- {
- const any &a = cd.get (argv[i]);
- if (a.type () == typeid (Config::IntList))
- {
- const Config::IntList &il = any_cast<Config::IntList> (a);
- std::copy (il.begin (), il.end (),
- std::ostream_iterator<int> (std::cout, " "));
- std::cout << std::endl;
- }
- else
- {
- std::cout << cd.get (argv[i]) << std::endl;
- }
- }
+ std::cout << cd.get (argv[i]) << std::endl;
}
catch (const std::exception &e)
{