• Increase font size
  • Default font size
  • Decrease font size
No one can make you feel inferior without your consent.

C++ member function pointers and delegates

Delegates is a concept widely used in design patterns like Observer or Strategy.

Standard C++ doesn't provide delegates, but this can be implemented using member function pointers. The problem is that C++'s object-oriented function pointers have a complicated syntax and have wierd behavior when dealing with inherited classes.

There has been a lot of discussion on this topic and many implementations exists.


Change a SVN commit log message or date

Most of the information stored in a SVN commit can be edited. This is the case of the message and date: edition of these values just require a simple hook.