--===============0709107065== Content-Type: multipart/alternative; boundary="----=_Part_65025_10937168.1219410893864" ------=_Part_65025_10937168.1219410893864 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > That means the definition for QHash jumped above the definition of the > qHash function. You have to put the function inside the Soprano namespace > for this to work. Or reference the namespace explicitly (a`la Soprano::qHash). On Thu, Aug 21, 2008 at 11:44 PM, Thiago Macieira wrote: > Brad Hards wrote: > >Any ideas? > > Yes. We've seen that problem. It happens because: > > * Soprano uses a namespace > * Soprano defined qHash(Soprano::Node) before qhash.h was defined > * qvariant.h has changed in 4.5, including qhash.h now > > That means the definition for QHash jumped above the definition of the > qHash function. You have to put the function inside the Soprano namespace > for this to work. > > According to our expert, this is the way the C++ name lookup rules say it > should be. > > -- > Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org > PGP/GPG: 0x6EF45358; fingerprint: > E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358 > > > >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to > unsubscribe << > > -- Michael Howell mhowell123@gmail.com ------=_Part_65025_10937168.1219410893864 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
> That means the definition for QHash jumped above the definition of the
> qHash function. You have to put the function inside the Soprano namespace
> for this to work.
Or reference the namespace explicitly (a`la Soprano::qHash).

On Thu, Aug 21, 2008 at 11:44 PM, Thiago Macieira <thiago@kde.org> wrote:
Brad Hards wrote:
>Any ideas?

Yes. We've seen that problem. It happens because:

 * Soprano uses a namespace
 * Soprano defined qHash(Soprano::Node) before qhash.h was defined
 * qvariant.h has changed in 4.5, including qhash.h now

That means the definition for QHash jumped above the definition of the
qHash function. You have to put the function inside the Soprano namespace
for this to work.

According to our expert, this is the way the C++ name lookup rules say it
should be.

--
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<




--
Michael Howell
mhowell123@gmail.com
------=_Part_65025_10937168.1219410893864-- --===============0709107065== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe << --===============0709107065==--