F
FT
Hi all:
In the standuard 9.3.2, it says:
IMO, the /this/ pointer can not be used as a l-value, so its type
should be X* const
instead of X*.(accordingly, const X* const instead of const X*,etc...)
Why the standuard "omit" that "const"?
(It's my first time to post on USENET. Hope me have not done any stupid
thing.)
Thanks,
FT
In the standuard 9.3.2, it says:
The type of /this/ in a member function of a class X is X*. If the member
function is declared const, the type of /this/ is const X*, if the member
function is declared volatile, the type of /this/ is volatile X*, and if the
member function is declared const volatile, the type of this is const volatile X*.
IMO, the /this/ pointer can not be used as a l-value, so its type
should be X* const
instead of X*.(accordingly, const X* const instead of const X*,etc...)
Why the standuard "omit" that "const"?
(It's my first time to post on USENET. Hope me have not done any stupid
thing.)
Thanks,
FT