スポンサード リンク
Microsoft Visual C++にて以下のソースでコンパイルエラーが発生します:
コンパイルエラーメッセージ:
error C2451: 条件式の型 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' が間違っています。 この変換を実行可能なユーザー定義変換演算子がないか、または演算子を呼び出せません。
ソース(バグ有り):
using namespace std;
#include <iostream>
#include <string>
int main()
{ |
ソース(修正済み):
using namespace std;
#include <iostream>
#include <string>
int main()
{ |
スポンサード リンク