From b1f612cdffec94d7575c0451d0119c9c38e90d35 Mon Sep 17 00:00:00 2001 From: Jochen Klein Date: Thu, 16 Nov 2023 10:39:51 +0100 Subject: [PATCH] Add PROCESS_SWITCH_FULL - generalisation of PROCESS_SWITCH for templated methods --- Framework/Core/include/Framework/Configurable.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Framework/Core/include/Framework/Configurable.h b/Framework/Core/include/Framework/Configurable.h index 153c3b792b59a..f1167adb5ebdd 100644 --- a/Framework/Core/include/Framework/Configurable.h +++ b/Framework/Core/include/Framework/Configurable.h @@ -97,6 +97,8 @@ struct ProcessConfigurable : Configurable { #define PROCESS_SWITCH(_Class_, _Name_, _Help_, _Default_) \ decltype(ProcessConfigurable{&_Class_ ::_Name_, #_Name_, _Default_, _Help_}) do##_Name_ = ProcessConfigurable{&_Class_ ::_Name_, #_Name_, _Default_, _Help_}; +#define PROCESS_SWITCH_FULL(_Class_, _Method_, _Name_, _Help_, _Default_) \ + decltype(ProcessConfigurable{&_Class_ ::_Method_, #_Name_, _Default_, _Help_}) do##_Name_ = ProcessConfigurable{&_Class_ ::_Method_, #_Name_, _Default_, _Help_}; template std::ostream& operator<<(std::ostream& os, Configurable const& c)