この関数はWagicを妨げている:コンパイルから自作:ませマッチ>>ローカル」
/ホーム/白/パンドラ/ wagic-読み取り専用/プロジェクト/ MTGを/ SRC/GameOptions.cpp:1156:エラー:不一致のための '演算子>>' 内の>>ローカル」
ソース(GameOptions.cpp):http://code.google.com/p/wagic/source/browse/trunk/projects/mtg/src/ GameOptions.cpp ソース(一般): http://code.google.com/p/wagic/source/browse/
(ライン1142-1172)
bool GameOptionKeyBindings::read(string input)
{
istringstream iss(input);
vector<pair<LocalKeySym, JButton> > assoc;
while (iss.good())
{
stringstream s;
iss.get(*(s.rdbuf()), ',');
iss.get();
LocalKeySym local;
char sep;
u32 button;
s >> local >> sep >> button;
if (':' != sep)
return false;
assoc.push_back(make_pair(local, u32_to_button(button)));
}
if (assoc.empty())
return false;
JGE* j = JGE::GetInstance();
j->ClearBindings();
for (vector<pair<LocalKeySym, JButton> >::const_iterator it = assoc.begin(); it != assoc.end(); ++it)
j->BindKey(it->first, it->second);
return true;
}
これをコンパイルするにはどうすればいいですか?