[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: kdepim/kpilot/conduits/vcalconduit
From:       Reinhold Kainhofer <reinhold () kainhofer ! com>
Date:       2004-04-14 12:43:02
Message-ID: 200404141443.04663.reinhold () kainhofer ! com
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday,  14. April 2004 14:25, Michael Brade wrote:
> > CVS commit by kainhofe:
> >
> > Clean up unnecessary includes. I haven't found a way to forward-declare
> > classes like KCal::Event::List::ConstIterator, so some includes are still
> > in there...
>
> namespace KCal {
>   namespace Event {
>     class Yadda;  // forward decl. KCal::Event::Yadda
>   }
> }
>
> should work in general. However, I'm not sure about the ConstIterator in 
> this case since List is a class and not a namespace; is it possible to
> forward declare class members without the class itself? I don't think so...

That problem already appears fro KCal::Event::List, since Event is already a 
class.... Too bad this can't be handled better. This way I still need to 
include the header that defines the Event class...

Thanks,
Reinhold
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAfTHYTqjEwhXvPN0RAnBpAKCGWTWuRniG695/Sf98u7e54vnmdwCgv/X8
XJ6sR8xqifADFi5A7ZQysDU=
=BMpq
-----END PGP SIGNATURE-----

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic