X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/08e7455d67920bbd7a87f440d00f2c1e071314a0..e71a2a302d28430dc1bfee906f842f5f3d0fa3ce:/include/xbt/config.hpp diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index 25e9cdf9e2..87343a0c19 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -132,7 +132,7 @@ void bind_flag(T& value, const char* name, std::initializer_list al */ // F is a checker, F : T& -> () template -typename std::enable_if()(std::declval()))>::value, void>::type +typename std::enable_if_t()(std::declval()))>::value, void> bind_flag(T& value, const char* name, const char* description, F callback) { declare_flag(name, description, value, std::function([&value, callback](const T& val) { @@ -142,7 +142,7 @@ bind_flag(T& value, const char* name, const char* description, F callback) } template -typename std::enable_if()(std::declval()))>::value, void>::type +typename std::enable_if_t()(std::declval()))>::value, void> bind_flag(T& value, const char* name, std::initializer_list aliases, const char* description, F callback) { bind_flag(value, name, description, std::move(callback)); @@ -150,8 +150,8 @@ bind_flag(T& value, const char* name, std::initializer_list aliases } template -typename std::enable_if()(std::declval()))>::value, - void>::type +typename std::enable_if_t()(std::declval()))>::value, + void> bind_flag(std::string& value, const char* name, const char* description, const std::map>& valid_values, F callback) { @@ -173,8 +173,8 @@ bind_flag(std::string& value, const char* name, const char* description, })); } template -typename std::enable_if()(std::declval()))>::value, - void>::type +typename std::enable_if_t()(std::declval()))>::value, + void> bind_flag(std::string& value, const char* name, std::initializer_list aliases, const char* description, const std::map>& valid_values, F callback) { @@ -191,7 +191,7 @@ bind_flag(std::string& value, const char* name, std::initializer_list bool template -typename std::enable_if()(std::declval()))>::value, void>::type +typename std::enable_if_t()(std::declval()))>::value, void> bind_flag(T& value, const char* name, const char* description, F callback) { declare_flag(name, description, value, std::function([&value, callback](const T& val) {