Pass pointers to objects by constant reference in C++
问题 I'm doing a practical assignment for university and I've run into a problem. I've got a class that declares this method: bool graficarTablero(const Tablero *&tablero, const string &nombreArchivo); I want to pass a pointer to an object Tablero by constant reference. If I call that function like, say for example: ArchivoGrafico *grafico = new ArchivoGrafico; if(grafico->graficarTablero(tablero, ARCHIVO_GRAFICO)){ ... ...I get compilation errors. Ok, I won't detail the error I get cause I think