Please explain a gcc weirdness

Sebastian TrĂ¼g trueg at
Wed Jun 23 20:28:09 BST 2010

Why does the following code fail with gcc 4.3.4:

QString uri...;
Nepomuk::Resource res( KUrl( uri ) );

while this works:

KUrl resourceUri( uri );
Nepomuk::Resource res( resourceUri );

And by "fail" I mean that gcc does not recognize res as being of type

I would simply like to understand this.


More information about the kde-core-devel mailing list