Skip to content
Snippets Groups Projects
Commit 9210ec6b authored by Thomas Blum's avatar Thomas Blum
Browse files

Move Result type definition to code file

parent db91c3a8
No related branches found
No related tags found
No related merge requests found
Pipeline #39183 canceled
......@@ -439,6 +439,13 @@ void Update::computeRequired() {
//-----------------------------------------------------------------------------
// Result operator
#if TUPLE_STREAM_REQUIRED
Result::Type Result::_type = Type::TupleStreamHandler;
#else
Result::Type Result::_type = Type::PrintToStdOut;
#endif
Result::Result(std::unique_ptr<Operator> child, const std::vector<iu_p_t> & selection) :
UnaryOperator(std::move(child)),
selection(selection)
......
......@@ -511,11 +511,7 @@ protected:
class Result : public UnaryOperator {
public:
#if TUPLE_STREAM_REQUIRED
enum class Type { PrintToStdOut, TupleStreamHandler } _type = Type::TupleStreamHandler;
#else
enum class Type { PrintToStdOut, TupleStreamHandler } _type = Type::PrintToStdOut;
#endif
static enum class Type { PrintToStdOut, TupleStreamHandler } _type;
std::vector<iu_p_t> selection;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment