Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
次のコードは合法ですか?
std::string&& x = "hello world";
g ++ 4.5.0は、このコードを問題なくコンパイルします。
これは現在usenetで議論されています。8.5 / 3の右辺値参照の例を参照してください。正しいか間違っていますか?。
それは合法ではありません。