From 5ce1cdec3a6f447bb36c3080e7ab38a5be033351 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sat, 31 Mar 2018 20:22:22 +0200 Subject: [PATCH] reindent to please clang --- include/xbt/config.hpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 -- 2.20.1