kjs: compile bug under msvc 7.1

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sat Jul 14 14:09:43 CEST 2007


Jarosław Staniek schrieb:
> Christian Ehrlicher said the following, On 2007-07-12 20:03:
>> Jarosław Staniek schrieb:
>>> Hello,
>>> Under msvc 7.1 I've got error [1] in this line 
>>> (kdelibs/kjs/wtf/Vector.h:552):
>>>
>>>   new (end()) T(*ptr);
>>>
>>> I am looking for sane workaround...
>>>
>> What source is compiled when you get this error?
> 
> kjs\semantic_checker.cpp(83)
> 
Looks like msvc does not recognize that StatementNode is derived from 
Node. Maybe try to give the compiler a hint
         new (end()) T(static_cast<T>(*ptr));
or
         new (end()) T(const_cast<U>(*ptr));
or both

Can't test it here as I don't have msvc7.1 available.

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-windows/attachments/20070714/85da0b7f/attachment.pgp 


More information about the Kde-windows mailing list