Skip to content
Snippets Groups Projects
Commit 89ad033f authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #2669: Move FIRST_ and LAST_ into enum range to make them valid values.

parent a6494345
No related branches found
No related tags found
No related merge requests found
......@@ -8,13 +8,13 @@ enum OutputType
{
CORRELATED_DATA = 1,
BEAM_FORMED_DATA,
TRIGGER_DATA
};
const OutputType FIRST_OUTPUT_TYPE = static_cast<OutputType>(1);
const OutputType LAST_OUTPUT_TYPE = static_cast<OutputType>(4); // exclusive
TRIGGER_DATA,
// define LAST and FIRST in the enum to make them valid values within the
// allocated range for the enum (=minimal number of bits to store all values)
LAST_OUTPUT_TYPE,
FIRST_OUTPUT_TYPE = 1
};
inline OutputType operator ++ (OutputType &outputType) // prefix ++
{
......
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