C++: Is it better to pass an enum as a value or as a const reference?
Speed wise it almost certainly doesn’t matter – any decent C++ compiler is just going to pass a single int. The important point is readability – which will make your code more obvious to the reader? If it’s obvious that these enums are really just ints then I would pass them by value, as if … Read more