dielema is an instance of a class that I wrote. When I try to call this method above, if it still had the const, my compiler would give me an error thinking that I'm passing visibility by reference.Code:unsigned int Drib::nextBird(unsigned int visibility)//having a const here screws things up { return dielema.nextBird(visibility); }
I thought declaring a method as const just means that it's not going to change any of the private data members?