[A89] C question


[Prev][Next][Index][Thread]

[A89] C question




I was wondering, when declaring a function, say a copy constructor for a
class, why should you use const to pass the value? something like
"someClass::someClass(const someClass &a)" or something along those lines.
what is the advantage or point even of using const instead of not using it?

/brian




References: