Problems using kdatetime.h with msvc

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


Christian Ehrlicher wrote:
>Hi,
>
>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:
>
>---------------8<-------------
> Error Message
>'OffsetFromUTC' : the name of a function parameter cannot be qualified
>
>You cannot use a qualified name as a function parameter.
>---------------8<-------------
>
>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) macieira.info - thiago (AT) kde.org
  thiago.macieira (AT) trolltech.com     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: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20060502/77cb9f2a/attachment.sig>


More information about the kde-core-devel mailing list