2006-12-05から1日間の記事一覧

C++ templateの中でSTLを使っていたらよくわからない問題がおきた

自分のスキルが足りないのだろう。次のようなコード: template<class T, class U> class hoge{ public: map<T, U> m; void hogegeho(){ map<T, U>::iterator itm = m.begin(); while( itm not_eq m.end() ){ itm++; } }; };がコンパイルできなくてしばらくハマってしまった。どうも map::i</t,></t,></class>…