Does the following usage of const have any value?
void Func(const bool state) {
std::cout << "The state is: " << state << std::endl;
}
const
references are certainly recommended and I surely see the benefit of it. But, coming to simple const
addition to non-reference parameter. Is that of any use?