passing as 'this' argument of ........ discards qualifiers
error is incured when a non-const function calls the non-const function of a const input object
1. remove the const of the input object
2. if caller is a member function, claim to be const::add const
if not, when const added: error:
non-member function cannot have cv-qualifier.
No comments:
Post a Comment