Skip to content

Commit 1bfc042

Browse files
committed
DPL Analysis: return span directly if the CCDB column is declared as a span
1 parent 97a77d9 commit 1bfc042

File tree

1 file changed

+7
-0
lines changed
  • Framework/Core/include/Framework

1 file changed

+7
-0
lines changed

Framework/Core/include/Framework/ASoA.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,6 +2470,7 @@ consteval static std::string_view namespace_prefix()
24702470
_Name_& operator=(_Name_ const& other) = default; \
24712471
\
24722472
decltype(auto) _Getter_() const \
2473+
requires(!std::same_as < _ConcreteType_, std::span<std::byte>) \
24732474
{ \
24742475
static std::byte* payload = nullptr; \
24752476
static _ConcreteType_* deserialised = nullptr; \
@@ -2484,6 +2485,12 @@ consteval static std::string_view namespace_prefix()
24842485
return *deserialised; \
24852486
} \
24862487
\
2488+
decltype(auto) _Getter_() const \
2489+
requires(std::same_as<_Concrete_Type_, std::span<std::byte>>) \
2490+
{ \
2491+
return *mColumnIterator; \
2492+
} \
2493+
\
24872494
decltype(auto) \
24882495
get() const \
24892496
{ \

0 commit comments

Comments
 (0)