06/06/20 22:31:04
>>97
解決しました。ありがとうございます。
>>94
そんな気もしてきましたね。良く見てみたらエラーメッセージの2行目は同じでしたが
私の場合1行目はありません。失礼しました。 どなたかgcc 4.0に上のを通していただけますか?
それでこれと同じエラーが出るのでしたら私の誤解でした。
castandref.cc: In function `int main()':
castandref.cc:24: error: invalid initialization of non-const reference of type 'char*&' from \
a temporary of type 'char*'
castandref.cc:16: error: in passing argument 1 of `void x(char*&)'