From b1480167be487d09ff46bb86ad02041fb28acff1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 11 Aug 2015 22:18:40 +0200 Subject: command/Request: add parser methods Wrapper for protocol/ArgParser.cxx. --- src/protocol/ArgParser.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/protocol') diff --git a/src/protocol/ArgParser.hxx b/src/protocol/ArgParser.hxx index 87f15846a..b05d7224e 100644 --- a/src/protocol/ArgParser.hxx +++ b/src/protocol/ArgParser.hxx @@ -47,6 +47,10 @@ struct RangeArg { start = 0; end = std::numeric_limits::max(); } + + static constexpr RangeArg All() { + return { 0, std::numeric_limits::max() }; + } }; bool -- cgit v1.2.3