///////////////////////////////////////
class A {
...
const double funA(void)
{...}
};
A a;
double x = a.funA();
// although the intention is to
// enf
In practice, there is no real benefits for scalars.
However, in theory it could help a compiler to perform additional optimizations, such as passing a reference to the constant instead of copying the double value.