报编译错误:
“The temporary for the throw expression is of type "TTStatus" and cannot be initialized with an expression of type "TTStatus".”
但是写成
TTStatus ttExp;
throw ttExp;
就不报错,高手指点下
...全文
102回复打赏收藏
AIX xlC编译问题
环境:AIX 编译器:xlC 代码写成 throw TTStatus(); 报编译错误: “The temporary for the throw expression is of type "TTStatus" and cannot be initialized with an expression of type "TTStatus".” 但是写成 TTStatus ttExp; throw ttExp; 就不报错,高手指点下