几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】warning In Odarray.h (http://www.dimcax.com/hust/showthread.php?t=19051)

yang686526 2009-05-07 06:40 PM

【转帖】warning In Odarray.h
 
warning in odarray.h
warning in odarray.h
hi
i am using dwgdirect 1.14.1 md with static libs and i am always getting warnings when i compile.
c:\projects\wygr17_vivien_1_3\sdk\dwgdirect\includ e\odarray.h(890) : warning c4244: 'initializing' : conversion from '__w64 int' to 'odarray<t,a>::size_type', possible loss of data
with
[
t=oddbgraphnode *,
a=odmemoryallocator<oddbgraphnode *>
]
c:\projects\wygr17_vivien_1_3\sdk\dwgdirect\includ e\odarray.h(889) : while compiling class-template member function 'odarray<t,a>::iterator odarray<t,a>::insert(odarray<t,a>::iterator,const t & )'
with
[
t=oddbgraphnode *,
a=odmemoryallocator<oddbgraphnode *>
]
c:\projects\wygr17_vivien_1_3\sdk\dwgdirect\includ e\dbgraph.h(404) : see reference to class template instantiation 'odarray<t,a>' being compiled
with
[
t=oddbgraphnode *,
a=odmemoryallocator<oddbgraphnode *>
]
am i doing something wrong causing these warnings??
these warnings may be safely ignored. to avoid them, turn off 'detect 64-bit portability issues' compiler option. you may do it with pragma around dd headers, if you want to detect portability issues in you code.
vladimir


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