X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/dc910462a7bbe778971c7d9ca460a7252474900b..e71a2a302d28430dc1bfee906f842f5f3d0fa3ce:/include/xbt/config.hpp diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index a3eb3fddcd..87343a0c19 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2016-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2016-2021. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -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) {