2008-06-24から1日間の記事一覧
VCでならコンパイルが通るのに,g++ではうまくいかなかった. g++でコンパイルした場合,関数test の中のconst_iteratorの宣言のとこで負ける. なぜだろう…. #include <vector> #include <iostream> using namespace std; template <class T> void test(const vector<T>& vec){ for(vector<T></t></t></class></iostream></vector>…