diff options
author | Timo Weingärtner <timo@tiwe.de> | 2011-11-30 17:51:32 +0100 |
---|---|---|
committer | Timo Weingärtner <timo@tiwe.de> | 2011-11-30 17:53:32 +0100 |
commit | 568bd7e0d719d7754943c6cfebfa4e4179d62333 (patch) | |
tree | 44bf3df7dfeed59d66b326fd8d9687be8e02b3b3 | |
parent | 7349d7a5f4c305f5ba350858cc810ab79ca81bb4 (diff) | |
download | hadori-568bd7e0d719d7754943c6cfebfa4e4179d62333.tar.gz |
use more C++11 features
-rw-r--r-- | hadori.C | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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")) |