Rooot.net

  • Increase font size
  • Default font size
  • Decrease font size
Living in a wooden world.
Code

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.

Read more...
 

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.

Read more...