DRAFT document on coding conventions in kde libraries
    Leo Savernik 
    l.savernik at aon.at
       
    Mon Mar  6 23:20:42 GMT 2006
    
    
  
Am Montag, 6. März 2006 22:11 schrieb Thiago Macieira:
> gcc 2.95 doesn't support adjusting-covariant returns, so I don't think we
> used covariant returns.
>
> You'd get a
> "gcc: internal error: sorry, unimplemented feature"
> if you tried to use it.
I mean simple covariant return values:
struct A {
  virtual A *f() { return new A(); }
};
struct B : public A {
  virtual B *f() { return new B(); }
};
This works with gcc 2.95, but not with msvc6.
mfg
	Leo
    
    
More information about the kde-core-devel
mailing list