RWCString str = "Y";
str.append("ES");
if("YES" == str)
cout << "YES == str" << endl;
if(str == "YES")
cout << "str == YES" << endl;
どちらの場合も暗黙の変換はどのように行われるのでしょうか? 安心して使えるのはどっち?RWCString は、const char* を受け取るコンストラクターと const char* への変換演算子を持つ文字列クラスです。