Open tonimueller opened 3 years ago
A lot of getter functions are written like
const type getValue() const {return value;}
where the compiler complains about the first const . (https://stackoverflow.com/questions/21478342/c-const-in-getter https://arne-mertz.de/2016/07/const-correctness/) The correct way would be to write
const
type getValue() const {return value;}
which does not alter the state of the object.
A lot of getter functions are written like
where the compiler complains about the first
const
. (https://stackoverflow.com/questions/21478342/c-const-in-getter https://arne-mertz.de/2016/07/const-correctness/) The correct way would be to writewhich does not alter the state of the object.