[Framework] Configurable.h: Fix PROCESS_SWITCH(_FULL) namespace issue#14670
[Framework] Configurable.h: Fix PROCESS_SWITCH(_FULL) namespace issue#14670ktf merged 1 commit intoAliceO2Group:devfrom
Conversation
- The macro `PROCESS_SWITCH` and `PROCESS_SWITCH_FULL` required one to use `using namespace o2::framework` otherwise one would get `Use of undeclared identifier 'ProcessConfigurable'`. This PR should fix this behaviour by explicitly using the namepsace in the macro definition.
|
REQUEST FOR PRODUCTION RELEASES: This will add The following labels are available |
|
This is not needed for any reconstruction. |
|
Makes sense to me. @aalkin ? |
|
@ktf yes, indeed, macros should use fully-qualified names. In principle, with c++20 we also should be able to do something like |
|
So can this be merged? |
|
yes, sorry i missed it... |
Ah okay, no worries. |
PROCESS_SWITCHandPROCESS_SWITCH_FULLrequired one to useusing namespace o2::frameworkotherwise one would getUse of undeclared identifier 'ProcessConfigurable'since macros are expanded as plain text and do not see any namespace that they might be living in. This PR should fix this behavior by explicitly using the namespace in the macro definition.