[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: [Kde-pim] error compiling kdepim4
From: Volker Krause <vkrause () kde ! org>
Date: 2006-11-24 10:42:08
Message-ID: 200611241142.09046.vkrause () kde ! org
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
On Thursday 23 November 2006 20:43, Thiago Macieira wrote:
> Giovanni Venturi wrote:
> >I used gcc 3.4.6,
>
> I'm not sure if this is correct C++ behaviour, but g++ 3.4.x doesn't
> accept it. The second argument to Q_FOREACH (and foreach) must not be a
> reference.
Ah, I didn't know that.
This basically makes foreach useless for iterating over function arguments
(which are usually const references). Interessting that we didn't hit this
earlier already...
> Can you fix the code in question, Giovanni?
I replaced the foreach with a for-loop, let's see if that works.
regards
Volker
[Attachment #5 (application/pgp-signature)]
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic