查看单个帖子
旧 2009-05-07, 06:40 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】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
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)