I think it is because of the code I wrote below. But I couldn’t solve it.
classname::smt() {;}
classname::smt1(int x, double y, string name)
{
x = xprivate;
y = yprivate;
name = nameprivate;
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It means you can’t have code that does this:
cv-qualifers apply to storage and to methods, not to constructors or destructors (because you still have to initialize cv-qualified storage).