高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】setdeviation Warnings
setdeviation warnings
setdeviation warnings
hi,
i want to vectorize certain entities but when i set the deviation like so:
odgedoublearray devs(5,1);
devs.insert(devs.end(), 5, 0.5);
odgigeometrysimplifier::setdeviation(devs);
i get these warnings:
\include\odarray.h(874) : warning c4244: 'initializing' : conversion from '__w64 int' to 'unsigned int', possible loss of data
\include\odarray.h(872) : while compiling class template member function 'double *odarray<t,a>::insert(double *,unsigned int,const t &)'
with
[
t=double,
a=odmemoryallocator<double>
]
include\ge\gecurve3d.h(666) : see reference to class template instantiation 'odarray<t,a>' being compiled
with
[
t=double,
a=odmemoryallocator<double>
]
the line causing this is:
devs.insert(devs.end(), 5, 0.5);
iterator
odarray::insert(
iterator before,
size_type numelements,
const t& value)
does anybody know what is wrong?
vortex.
these warnings still happen although deviation is now working.
|