A
Alvin
Hello,
I have a static library that I created. I've been updating the source to be
const-correct as according to the C++ FAQ Lite section 18
(http://www.parashift.com/c++-faq-lite/const-correctness.html). I know I
should have done this in the first place, but better late than never.
I have been declaring inspect functions const as in:
int inspect() const;
and if a parameter is not going to be altered as in:
int foo(const MyObject *obj) const;
int bar(const MyObject *obj);
I have been systematically testing the library with a backup copy to ensure
I'm not introducing any *new* bugs. So, functionally, the const-correct
version works just as well as the original.
As I have been doing this, I have noticed that the size of the library has
slowly been increasing. Not by much, just getting larger by a couple of
kilobytes. Does anyone know why this would occur?
I have a static library that I created. I've been updating the source to be
const-correct as according to the C++ FAQ Lite section 18
(http://www.parashift.com/c++-faq-lite/const-correctness.html). I know I
should have done this in the first place, but better late than never.
I have been declaring inspect functions const as in:
int inspect() const;
and if a parameter is not going to be altered as in:
int foo(const MyObject *obj) const;
int bar(const MyObject *obj);
I have been systematically testing the library with a backup copy to ensure
I'm not introducing any *new* bugs. So, functionally, the const-correct
version works just as well as the original.
As I have been doing this, I have noticed that the size of the library has
slowly been increasing. Not by much, just getting larger by a couple of
kilobytes. Does anyone know why this would occur?