Commit 70b50865 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Fix include file issue in gml.hh

This fixes ticket #85.
parent 2dbe0ce1
...@@ -36,6 +36,12 @@ ...@@ -36,6 +36,12 @@
#include <string> #include <string>
#include <vector> #include <vector>
#if (GCC_VERSION >= 40400)
# include <tr1/unordered_map>
#else
# include <boost/tr1/unordered_map.hpp>
#endif
namespace graph_tool{ namespace graph_tool{
using namespace std; using namespace std;
...@@ -199,10 +205,10 @@ private: ...@@ -199,10 +205,10 @@ private:
Graph& _g; Graph& _g;
dynamic_properties& _dp; dynamic_properties& _dp;
bool _directed; bool _directed;
unordered_map<int, typename graph_traits<Graph>::vertex_descriptor> _vmap; tr1::unordered_map<int, typename graph_traits<Graph>::vertex_descriptor> _vmap;
// the stack holds the keys, and its properties (but omits nested lists) // the stack holds the keys, and its properties (but omits nested lists)
typedef unordered_map<std::string, val_t> prop_list_t; typedef tr1::unordered_map<std::string, val_t> prop_list_t;
vector<pair<std::string, prop_list_t> > _stack; vector<pair<std::string, prop_list_t> > _stack;
}; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment