几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】setdeviation Warnings (http://www.dimcax.com/hust/showthread.php?t=18538)

yang686526 2009-05-07 03:39 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 01:44 AM.