From c5a60982ba01d765251c8f0aff6cf2c1c3fa4be8 Mon Sep 17 00:00:00 2001 From: "Taylor C. Richberger" Date: Tue, 12 Dec 2017 19:58:24 -0700 Subject: replace explicit std::vector ParseCLI with template, reduce optimization Optimization absolutely kills test build time. Dropping optimization level cuts compile time in less than half, and it still doesn't take long to run. --- args.hxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'args.hxx') 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 &args) + template + bool ParseCLI(const T &args) { return ParseArgs(args) == std::end(args); } -- cgit v1.2.1