G++ does not like this and won't compile. I don't know why. Rip away the class stuff and it works fine, just like any other function pointer.<BR><BR><pre class="ip ...
From a purely object-oriented perspective, "copy semantics" is the right way to preserve control over object ownership. But in those scenarios where ownership becomes irrelevant, C++11 "move semantics ...
Delegates are type safe function pointers *with an optional this pointer* thus no need to pass one round yourself. Obviously their utility is much enhanced in contract to C++ by virtue of being part ...