Skip to content

Commit

Permalink
Reuse the TypeSwitch check of type lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul-Licameli committed Oct 27, 2023
1 parent cfad0fa commit 88a8ffa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libraries/lib-registries/Registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ namespace detail { using namespace TypeList;

template<typename RegistryTraits> constexpr auto AcceptableTraits_v =
TypeList::Every_v<TypeList::Fn<AcceptableBaseItem>,
AllTypes_t<RegistryTraits>>;
AllTypes_t<RegistryTraits>> &&
TypeSwitch::TypeListCheck_v<detail::VisitedNodeTypes<RegistryTraits>> &&
TypeSwitch::TypeListCheck_v<detail::VisitedLeafTypes<RegistryTraits>>;

namespace detail {
//! An item that delegates to another held in a shared pointer
Expand Down

0 comments on commit 88a8ffa

Please sign in to comment.