aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--args.hxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5cb8feb..dc4a5ea 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ FLAGS += -std=c++11
ifdef DEBUG
FLAGS += -ggdb -O0
else
-FLAGS += -O2
+FLAGS += -O0
endif
LIBS =
diff --git a/args.hxx b/args.hxx
index 67f53eb..37e86b4 100644
--- a/args.hxx
+++ b/args.hxx
@@ -2663,7 +2663,8 @@ namespace args
return ParseArgs(args) == std::end(args);
}
- bool ParseCLI(const std::vector<std::string> &args)
+ template <typename T>
+ bool ParseCLI(const T &args)
{
return ParseArgs(args) == std::end(args);
}