Error in Windows Build

From: Prashant Bafna <appu.bafna_at_gmail.com>
Date: Sun Sep 22 2013 - 16:31:33 CEST

Hi,

With respect to some changes in the Tables code, i think there is an
error in the Windows build:

Refer:

1>..\..\src\text\fmt\xp\fp_TableContainer.cpp(2998) : warning C4244:
'argument' : conversion from 'double' to 'UT_sint32', possible loss of
data
1>C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\xutility(315) : error C2664: 'bool
(UT_sint32,fp_TableRowColumn *)' : cannot convert parameter 2 from
'const UT_sint32' to 'fp_TableRowColumn *'
1> Conversion from integral type to pointer type requires
reinterpret_cast, C-style cast or function-style cast
1> C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\algorithm(2371) : see reference to function template
instantiation 'bool std::_Debug_lt_pred<bool(__cdecl
*)(UT_sint32,fp_TableRowColumn *),_Ty,fp_TableRowColumn*>(_Pr,const
_Ty1 &,const _Ty2 &,const wchar_t *,unsigned int)' being compiled
1> with
1> [
1> _Ty=UT_sint32,
1> _Pr=bool (__cdecl *)(UT_sint32,fp_TableRowColumn *),
1> _Ty1=UT_sint32,
1> _Ty2=fp_TableRowColumn *
1> ]
1> C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\include\algorithm(2385) : see reference to function template
instantiation '_FwdIt
std::_Upper_bound<std::_Vector_const_iterator<_Ty,_Alloc>,int,__w64
int,bool(__cdecl *)(UT_sint32,fp_TableRowColumn
*)>(_FwdIt,_FwdIt,const int &,_Pr,_Diff *)' being compiled
1> with
1> [
1> _FwdIt=std::_Vector_const_iterator<fp_TableRowColumn
*,std::allocator<fp_TableRowColumn *>>,
1> _Ty=fp_TableRowColumn *,
1> _Alloc=std::allocator<fp_TableRowColumn *>,
1> _Pr=bool (__cdecl *)(UT_sint32,fp_TableRowColumn *),
1> _Diff=__w64 int
1> ]
1> ..\..\src\text\fmt\xp\fp_TableContainer.cpp(3649) : see
reference to function template instantiation '_FwdIt
std::upper_bound<std::_Vector_const_iterator<_Ty,_Alloc>,UT_sint32,bool(__cdecl
*)(UT_sint32,fp_TableRowColumn *)>(_FwdIt,_FwdIt,const int &,_Pr)'
being compiled
1> with
1> [
1> _FwdIt=std::_Vector_const_iterator<fp_TableRowColumn
*,std::allocator<fp_TableRowColumn *>>,
1> _Ty=fp_TableRowColumn *,
1> _Alloc=std::allocator<fp_TableRowColumn *>,
1> _Pr=bool (__cdecl *)(UT_sint32,fp_TableRowColumn *)
1> ]
1>fp_TestRoutines.cpp

Thanks,
Prashant
Received on Sun Sep 22 16:31:49 2013

This archive was generated by hypermail 2.1.8 : Sun Sep 22 2013 - 16:31:49 CEST