Skip to content

Commit

Permalink
WIP: Move reflect-light into GR
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kretz <[email protected]>
  • Loading branch information
mattkretz committed Oct 3, 2024
1 parent dbbba14 commit d8eda0c
Show file tree
Hide file tree
Showing 2 changed files with 475 additions and 7 deletions.
5 changes: 1 addition & 4 deletions core/include/gnuradio-4.0/PortTraits.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@ concept is_port_v = is_output<Type>::value || is_input_v<Type>;
template<typename Type>
using is_port = std::integral_constant<bool, is_port_v<Type>>;

// actually tuple-like (including vir::simple_tuple and std::array)
// actually tuple-like (including std::array)
template<typename T>
struct is_port_tuple : std::false_type {};

template<typename... Ts>
struct is_port_tuple<std::tuple<Ts...>> : std::conjunction<is_port<Ts>...> {};

template<typename... Ts>
struct is_port_tuple<vir::simple_tuple<Ts...>> : std::conjunction<is_port<Ts>...> {};

template<typename T, std::size_t N>
struct is_port_tuple<std::array<T, N>> : is_port<T> {};

Expand Down
Loading

0 comments on commit d8eda0c

Please sign in to comment.