summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Weingärtner <timo@tiwe.de>2011-11-30 17:51:32 +0100
committerTimo Weingärtner <timo@tiwe.de>2011-11-30 17:53:32 +0100
commit568bd7e0d719d7754943c6cfebfa4e4179d62333 (patch)
tree44bf3df7dfeed59d66b326fd8d9687be8e02b3b3
parent7349d7a5f4c305f5ba350858cc810ab79ca81bb4 (diff)
downloadhadori-568bd7e0d719d7754943c6cfebfa4e4179d62333.tar.gz
use more C++11 features
-rw-r--r--hadori.C4
1 files 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<std::string> >(), "files and directories to work on")
+ ("args", po::value<std::vector<std::string>>(), "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<std::string> >())
+ for(auto const & dir : config["args"].as<std::vector<std::string>>())
recurse_start(dir);
} else {
if (not config.count("stdin") and not config.count("null"))