Skip to content

Commit

Permalink
Please consider the following formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
alibuild committed Jun 25, 2024
1 parent 539bb82 commit 28b35c9
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions Framework/Core/include/Framework/ASoA.h
Original file line number Diff line number Diff line change
Expand Up @@ -949,15 +949,18 @@ struct RowViewCore : public IP, C... {
void bind()
{
using namespace o2::soa;
auto f = framework::overloaded {
[this]<typename T>(T*) -> void requires is_persistent_v<T> { T::mColumnIterator.mCurrentPos = &this->mRowIndex; },
[this]<typename T>(T*) -> void requires is_dynamic_v<T> { bindDynamicColumn<T>(typename T::bindings_t{});},
[this]<typename T>(T*) -> void {},
};
(f(static_cast<C*>(nullptr)), ...);
if constexpr (has_index_v) {
this->setIndices(this->getIndices());
this->setOffsets(this->getOffsets());
auto f = framework::overloaded{
[this]<typename T>(T*) -> void requires is_persistent_v<T>{T::mColumnIterator.mCurrentPos = &this->mRowIndex;
}
,
[this]<typename T>(T*) -> void requires is_dynamic_v<T> { bindDynamicColumn<T>(typename T::bindings_t{}); }
,
[this]<typename T>(T*) -> void {},
};
(f(static_cast<C*>(nullptr)), ...);
if constexpr (has_index_v) {
this->setIndices(this->getIndices());
this->setOffsets(this->getOffsets());
}
}

Expand Down

0 comments on commit 28b35c9

Please sign in to comment.