Problems using kdatetime.h with msvc

Paulo Moura Guedes moura at kdewebdev.org
Tue May 2 19:48:43 BST 2006


On Tuesday 02 May 2006 17:36, 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 reproduce those errors with msvc.

Paulo




More information about the kde-core-devel mailing list