From: Martin Quinson Date: Sat, 31 Mar 2018 18:22:22 +0000 (+0200) Subject: reindent to please clang X-Git-Tag: v3.20~560 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5ce1cdec3a6f447bb36c3080e7ab38a5be033351 reindent to please clang --- diff --git a/include/xbt/config.hpp b/include/xbt/config.hpp index f773739c86..1f46590a3f 100644 --- a/include/xbt/config.hpp +++ b/include/xbt/config.hpp @@ -196,13 +196,11 @@ typename std::enable_if([&value, callback](const T& val) { - if (not callback(val)) - throw std::range_error("invalid value."); - value = std::move(val); - }) - ); + declareFlag(name, description, value, std::function([&value, callback](const T& val) { + if (not callback(val)) + throw std::range_error("invalid value."); + value = std::move(val); + })); } /** A variable bound to a CLI option