struct vs. class

Kuba Ober kuba at mareimbrium.org
Mon Dec 31 14:05:03 UTC 2007


> > > So I'd like to know wether there are objections against changing all
> > > code from using struct to class (including the needed public:
> > > declaration). Especially are there speed or memory drawbacks using
> > > class instead of struct? (I'm thinking about duchain and related stuff,
> > > where there may be reasons to keep struct)
> >
> > 'class' and 'struct' should be the same, except for different default
> > visibility.
>
> I conclude that means I don't have to worry :)
>
> > And the struct vs. class warning is rather pointless, but formally
> > correct.
>
> Yeah I know. Its really just so I (and in the future hopefully others
> porting to win32) don't get broken eyes by searching for the actual
> error.

It'd be simpler to just disable that warning.

Cheers, Kuba




More information about the KDevelop-devel mailing list