gtestとstd::tr1::tupleの相性が悪い

C++

テストのコンパイルが通らなくて少しはまったりしたので、メモ。gtestとstd::tr1::tupleを一緒に使っているとこんな感じのエラーが出る。 c++ namespace collision with gtest and boost - Stack Overflow ここに書いてある方法か #ifndef GTEST_HAS_TR1_TUP…

グラフ関連のアルゴリズムの俺俺クラスを作ってみた

が、色々網羅する前に力尽き(ry。 深さ、幅優先探索 強連結成分分解 ベルマンフォード法 くらいしか書いてない。 #include <iostream> #include <string> #include <vector> #include <map> #include <queue> #include <math.h> #include <boost/assign.hpp> #include <boost/shared_ptr.hpp> #include <boost/foreach.hpp> template </boost/foreach.hpp></boost/shared_ptr.hpp></boost/assign.hpp></math.h></queue></map></vector></string></iostream>