Skip to content

Commit

Permalink
remove unused trait
Browse files Browse the repository at this point in the history
  • Loading branch information
TillHeinzel committed Sep 10, 2019
1 parent 9dbadae commit 90e793e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
8 changes: 0 additions & 8 deletions include/pipes/detail/core/Output.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,5 @@ namespace tillh
{
return Output<Op, Outputs>(op, outputs);
}
template<class T>
struct is_output : std::false_type {};

template<class Op, class Outputs>
struct is_output<Output<Op, Outputs>> : std::true_type {};

template<class T>
constexpr static bool is_output_v = is_output<T>::value;
}
}
1 change: 1 addition & 0 deletions test/src/detail/pipeTraits.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <pipes/pipes.hpp>

#include "is_node.hpp"
#include "../testUtils.hpp"

using namespace tillh::pipes::api;
using namespace tillh::pipes::util;
Expand Down
11 changes: 10 additions & 1 deletion test/src/testUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,13 @@ namespace testUtils
return ret;
}
};
}
}

template<class T>
struct is_output : std::false_type {};

template<class Op, class Outputs>
struct is_output<tillh::pipes::Output<Op, Outputs>> : std::true_type {};

template<class T>
constexpr static bool is_output_v = is_output<T>::value;

0 comments on commit 90e793e

Please sign in to comment.