R
Rahul Joshi
Hi,
Is it possible to define static member functions that are 'const',
i.e. they just read but do not modify the static data members of
a class? Declaring functions like:
class SomeClass {
static int read() const;
};
gives compiler errors, so it seems this is not directly supported.
Is there any other way in which I can get this effect?
Thanks,
Rahul
Is it possible to define static member functions that are 'const',
i.e. they just read but do not modify the static data members of
a class? Declaring functions like:
class SomeClass {
static int read() const;
};
gives compiler errors, so it seems this is not directly supported.
Is there any other way in which I can get this effect?
Thanks,
Rahul