Problems using kdatetime.h with msvc

Thiago Macieira thiago at
Tue May 2 18:17:18 BST 2006

Christian Ehrlicher wrote:
>I get some compile errors when I try to use kdatetime.h
> (kdatetimetest.cpp). The problem is the usage of OffsetFromUTC,
> LocalZone and maybe others as an enum and a function within the same
> namespace:
> Error Message
>'OffsetFromUTC' : the name of a function parameter cannot be qualified
>You cannot use a qualified name as a function parameter.
>I think it is not allowed because the compiler can't distinguish between
>the enum and the adress for the function.

I can see that, but I cannot understand your compilation error.

The static function OffsetFromUTC is part of the Spec sub-class. There 
should be no errors.

Unless, of course, the code that is failing is inside the Spec sub-class.

djarvie: why is that function named with an uppercase letter?
Thiago Macieira  -  thiago (AT) - thiago (AT)
  thiago.macieira (AT)     Trolltech AS
    GPG: 0x6EF45358                   |  Sandakerveien 116,
    E067 918B B660 DBD1 105C          |  NO-0402
    966C 33F5 F005 6EF4 5358          |  Oslo, Norway
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
URL: <>

More information about the kde-core-devel mailing list