What does “request for member ‘*******’ in something not a structure or union” mean?
It also happens if you’re trying to access an instance when you have a pointer, and vice versa: As pointed out in a comment, this can be made excruciating if someone goes and typedefs a pointer, i.e. includes the * in a typedef, like so: Because then you get code that looks like it’s dealing with instances, when in fact … Read more