查看单个帖子
旧 2009-05-06, 07:07 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】odansistring and linu

odansistring and linux
odansistring and linux
with the way odansistring is implemented you cannot have the "=" operator on the same line as the definition when using gcc 3.3 (and probably other versions). so you cannot do:
odansistring astr = str;
you have to do:
odansistring astr;
astr = str;
note: not a bug, just a warning.
what is "str"?
what compiler says?
vladimir
str is usually a odstring in my case, but it could be another odansistring.
the message is:
error: conversion from 'odstring' to non-scalar type 'odansistring' requested.
you may probably fix it by changing one constructor signature for ansistring:
code:
odansistring(const odstring& , odcodepageid);
change to:
code:
odansistring(const odstring& , odcodepageid = cp_cnt);
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)