I\'m getting the following error:
`.\' cannot appear in a constant-expression
for this function (line 4):
bool Covers(const
I assume this fails because the []
operator is not a valid operation on your variables me
, other
, etc.
Did you overload the []
operator on your Region<>
class? If so, does it return an object which actually has these min
and max
members? — Does the overloaded operator return an object, an object by reference, or a pointer to an object? (In the last case, you'd need to replace .
by ->
.)
If you haven't overloaded []
, then me
, other
etc. would have to be declared as an array for your code to be valid.