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)