[haiku-development] Re: gcc4 issues (again)

  • From: "Niels Reedijk" <niels.reedijk@xxxxxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Tue, 11 Mar 2008 10:56:05 +0100

2008/3/11, Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>:
> 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();

I would prefer not doing that, as it would potentially throw off
Doxygen. The other option is cleaner in that respect.

N.

Other related posts: