Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What does this error message mean:
cannot convert 'this' pointer from 'const class Clinic' to 'class Clinic &'
cannot convert 'this' pointer from 'const class Doctor' to 'class Doctor &'
I'm not using const anyway.
There is something personal I need to ask.This project is my first one in c++ and it's very important to me and to my studies ,so I'd like some of you to look at the code and tell me what you think.Is it possible???
please if anyone likes to help me I'd be greatful if you send me your e-mail and I'll send you the source code back.
and thanks alot for all of you.
Posted

 
Share this answer
 
Have you defined any member function of the class as

const ret fn(...)

OR
ret fn(...) const

if Yes,
you are trying to pass this function pointer to some other function with different prototype.

OR
had you inherted any other class to yours that has const virtual fuction?
you can post your code if you want, so that it will be easy to analyze for us.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900