Skip to content

Commit

Permalink
move code
Browse files Browse the repository at this point in the history
  • Loading branch information
TillHeinzel committed Sep 10, 2019
1 parent 90e793e commit baab14c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions include/pipes/detail/core/connect.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ namespace tillh
using primary_constant = mode_constant<ConnectMode::Primary>;
using secondary_constant = mode_constant<ConnectMode::Secondary>;

template<class T>
decltype(auto) clearPrimary(T&& t)
{
return FWD(t);
}

template<std::size_t index, class Op, class Connections, class Child >
auto replace(Node<Op, Connections>&& node, Child&& child)
{
Expand All @@ -46,6 +40,12 @@ namespace tillh
return replace<lastIndex>(std::move(node), FWD(child));
}

template<class T>
decltype(auto) clearPrimary(T&& t)
{
return FWD(t);
}

inline auto clearPrimary(PrimaryOpenConnectionPlaceHolder)
{
return OpenConnectionPlaceHolder();
Expand Down

0 comments on commit baab14c

Please sign in to comment.