We define a function that uses a type defined elsewhere:
auto some_func(const some_type var) -> bool { ... }
Let's say that currently some_type is an enum. But it's defined elsewhere in the codebase, and arguably could be changed. I believe because the type of "some_type" isn't necessarily guaranteed to be an enum primitive type, the const makes sense. My code reviewer believes that it's a mistake to use const because some_type is an enum.
Does it make sense to leave the "const" in here because someday some_type may change, or does it make sense to leave it out because it is an enum and will likely always be an enum?
For those marking this question as a duplicate, the question is NOT "should I use const on enums" - the question IS "should we use const if we the definition of the type is in another part of the codebase and we can't guarantee that the type will stay an enum"