-
October 15th, 2008, 09:58 AM
#1
C++ Faq
Hi all,
I was reading a very old book called C++ FAQ. In reading about the constness of an object. I come across this question
"Does const apply to the object's bitwise state or its abstract state?"
In this question, what is bitwise state and abstract state or observable state.
Thanks in advance.
-
October 15th, 2008, 10:01 AM
#2
Re: C++ Faq
It means that two objects could be logically identical but not have precisely the same bit pattern in memory. Essentially, it means that you need operator== because memcmp() isn't good enough.
-
October 15th, 2008, 10:02 AM
#3
Re: C++ Faq
Perhaps this answer to the FAQ What is a "const member function"? would help you understand. In particular, take note of the last paragraph.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|