From b5b6da4959aaec95bd23d9da17372339756ba573 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Thu, 31 Oct 2024 09:49:06 +0100 Subject: [PATCH] DPL: hide helper in an anonymous namespace --- .../include/Framework/StructToTuple.h | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Framework/Foundation/include/Framework/StructToTuple.h b/Framework/Foundation/include/Framework/StructToTuple.h index c600e33883a74..5748329f6a50d 100644 --- a/Framework/Foundation/include/Framework/StructToTuple.h +++ b/Framework/Foundation/include/Framework/StructToTuple.h @@ -14,23 +14,26 @@ #include #include -namespace o2::framework +namespace { -struct any_type { - template - constexpr operator T(); // non explicit -}; - template decltype(void(T{std::declval()...}), std::true_type()) - test(int); + brace_test(int); template std::false_type - test(...); + brace_test(...); +} // namespace + +namespace o2::framework +{ +struct any_type { + template + constexpr operator T(); // non explicit +}; template -struct is_braces_constructible : decltype(test(0)) { +struct is_braces_constructible : decltype(brace_test(0)) { }; #define DPL_REPEAT_0(x)