高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|