From 568bd7e0d719d7754943c6cfebfa4e4179d62333 Mon Sep 17 00:00:00 2001 From: Timo Weingärtner Date: Wed, 30 Nov 2011 17:51:32 +0100 Subject: use more C++11 features --- hadori.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hadori.C b/hadori.C index 4ac0684..093f9a3 100644 --- a/hadori.C +++ b/hadori.C @@ -168,7 +168,7 @@ int main (int const argc, char ** argv) { po::options_description all_opts; all_opts.add(opts); all_opts.add_options() - ("args", po::value< std::vector >(), "files and directories to work on") + ("args", po::value>(), "files and directories to work on") ; po::positional_options_description pos_opts; pos_opts.add("args", -1); @@ -192,7 +192,7 @@ int main (int const argc, char ** argv) { error << "--stdin combined with commandline arguments, this is not supported." << std::endl; return EX_USAGE; } - for(std::string const & dir : config["args"].as< std::vector >()) + for(auto const & dir : config["args"].as>()) recurse_start(dir); } else { if (not config.count("stdin") and not config.count("null")) -- cgit v1.2.3