Tuesday, January 26, 2010

This Pointer

The type of the 'this pointer' in a const member function of class C is: C const * const.
Reference: "C++ Gotchas" by Stephen C. Dewhurst, Addison-Wesley, 2002., p. 249.

1 comment:

  1. i cannot find this one from the book maybe because of different edition. Could you please tell what Gotcha # it is? Thanks.

    ReplyDelete