From: Arnaud Giersch Date: Wed, 18 Apr 2018 20:32:13 +0000 (+0200) Subject: Add missing constructor for simgrid::config::Flag. X-Git-Tag: v3.20~399 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/374ad05d1c53e13938d24ab3c6af22d36db9c074 Add missing constructor for simgrid::config::Flag. --- diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index d25e1c41ce..5c2f0988e3 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -216,6 +216,13 @@ public: simgrid::config::bindFlag(value_, name, desc, std::move(callback)); } + template + Flag(const char* name, std::initializer_list aliases, const char* desc, T value, F callback) + : value_(value) + { + simgrid::config::bindFlag(value_, name, std::move(aliases), desc, std::move(callback)); + } + /* A constructor accepting a map of valid values -> their description, * and producing an informative error message when an invalid value is passed, or when help is passed as a value. */