From 9477db236329a17891105c68bda99073196a3f69 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Jun 2015 00:11:23 +0200 Subject: config/Templates: add constructor with defaulted "repeat" parameter --- src/config/ConfigTemplates.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config/ConfigTemplates.hxx') diff --git a/src/config/ConfigTemplates.hxx b/src/config/ConfigTemplates.hxx index 1aa6c6e8d..7b01ad40f 100644 --- a/src/config/ConfigTemplates.hxx +++ b/src/config/ConfigTemplates.hxx @@ -23,6 +23,10 @@ struct ConfigTemplate { const char *const name; const bool repeatable; + + constexpr ConfigTemplate(const char *_name, + bool _repeatable=false) + :name(_name), repeatable(_repeatable) {} }; extern const ConfigTemplate config_param_templates[]; -- cgit v1.2.3