Skip to content

Commit 51a373d

Browse files
committed
move is_metadata trait to soa
1 parent eaac6ab commit 51a373d

File tree

1 file changed

+4
-4
lines changed
  • Framework/Core/include/Framework

1 file changed

+4
-4
lines changed

Framework/Core/include/Framework/ASoA.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -231,9 +231,6 @@ struct TableMetadata {
231231
}
232232
};
233233

234-
template <typename T>
235-
concept is_metadata = framework::base_of_template<TableMetadata, T>;
236-
237234
template <typename D>
238235
struct MetadataTrait {
239236
using metadata = void;
@@ -378,14 +375,17 @@ using SelectionVector = std::vector<int64_t>;
378375
template <typename T>
379376
concept has_parent_t = not_void<typename T::parent_t>;
380377

378+
template <typename T>
379+
concept is_metadata = framework::base_of_template<aod::TableMetadata, T>;
380+
381381
template <typename T>
382382
concept is_metadata_trait = framework::specialization_of_template<aod::MetadataTrait, T>;
383383

384384
template <typename T>
385385
concept has_metadata = is_metadata_trait<T> && not_void<typename T::metadata>;
386386

387387
template <typename T>
388-
concept has_extension = aod::is_metadata<T> && not_void<typename T::extension_table_t>;
388+
concept has_extension = is_metadata<T> && not_void<typename T::extension_table_t>;
389389

390390
template <typename T>
391391
concept is_spawnable_column = std::same_as<typename T::spawnable_t, std::true_type>;

0 commit comments

Comments
 (0)