2008/3/11, Maurice Kalinowski <haiku@xxxxxxxxxxxxx>: > As the gcc4 version is not binary-compatible at all, what about a > __GNUC__ >= 3 check in front of the destructor and make it virtual then? > I know that readability will suffer a little bit, but on the other hand, > we'll get rid of a lot of potential errors and warnings in the build system? > If you are going to use it you could use a define that is defined to an empty string on gcc.295 and to "virtual" on gcc4. So it's just GCC4-Virtual ~Foo(); -- Fredrik Holmqvist Chaordic: things that thrive on the edge of chaos with just enough order to give them pattern, but not so much to slow their adaptation and learning.