Stupid C++ Tricks: Part 2

Mar 21, 2007 18:10

Here's a stupid trick I came up with to simplify implementations of the visitor pattern I'm using in an application I'm working on ( Read more... )

c++, code

Leave a comment

Comments 3

aegisknight March 22 2007, 08:19:58 UTC
I don't get it...

Reply

thespeedbump March 24 2007, 06:04:15 UTC
Basically, he's forcing the FAKE_CLASS to override the full set of methods, even if the base class defines them.

Reply


youthstores October 12 2016, 03:20:10 UTC
If you ignore the fact that it relies on nasty macros it's pretty handy Essentially it lets me enfor

Reply


Leave a comment

Up