Relative Content

Tag Archive for c++pointers

C++ pointer in const object can call non-const function [duplicate]

This question already has answers here: Why can I call a non-const member function pointer from a const method? (5 answers) Propagate constness to data pointed by member variables (4 answers) Closed 3 days ago. I have a situation that a const object that has a pointer member is able to call a non-const function […]

C++ pointer in const object can call non-const function [duplicate]

This question already has answers here: Why can I call a non-const member function pointer from a const method? (5 answers) Propagate constness to data pointed by member variables (4 answers) Closed 3 days ago. I have a situation that a const object that has a pointer member is able to call a non-const function […]