DEV Community

Discussion on: When to use const in C++? Part IV: parameters

 
sandordargo profile image
Sandor Dargo

Thanks, I'm going to read it during the weekend. I just had a glance at it, and yeah, the default parameters for virtual can be problematic. I also wrote a draft about it after we had discussed that in our team a few weeks ago when we activated a new Sonar profile...

By the way, luckily the const mismatch doesn't work with references or pointers to const data.