c++でcoutを使おうとすると、
「 error: cannot bind ‘std::basic_ostream<char>’ lvalue to ‘std::basic_ostream<char>&&’」のようなエラーが出ます。
以下コードです。
コードが2000行以上あるので、必要と思われる部分だけ抜き出してます。
c++
1#include <queue> 2#include <iostream> 3#include <set> 4#include <map> 5 6using std::endl; 7using namespace std; 8 9 10class BundleProtocol: public Application, public enable_shared_from_this<BundleProtocol> 11{ 12private: 13 void SendMSAck(const NetworkAddress& targetNetworkAddress); 14} 15 16 17 18 19inline 20void BundleProtocol::SendMSAck( 21 const NetworkAddress& targetNetworkAddress) 22{ 23 const NetworkAddress& target = targetNetworkAddress; 24 25 cout << "target : " << target << endl; 26 27} 28
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/08/05 07:53
2016/08/05 07:58
2016/08/05 08:08