Friday, March 26, 2010

Private Members

A very not nice way to get access to private members is to put '#define private public' before the header file #include of the class you want to access the private members of.
Reference: Pattern Hatching by John Vlissides, Addison-Wesley, 1998., p. 47.

No comments:

Post a Comment