Expand|Select|Wrap|Line Numbers
- void loadHierarchy(){
- // ...
- std::ifstream inFile;
- inFile.open("ext.gml", std::ifstream::in);
- typedef boost::adjacency_list<> Graph;
- Graph g;
- boost::read_graphml(inFile, g);
- // ...
- }
The errors that I get are the following:
Expand|Select|Wrap|Line Numbers
- error: invalid initialization of reference of type ‘boost::mutate_graph&’ from expression of type ‘loadHierarchy()::Graph’
- /usr/include/boost/graph/graphml.hpp:194: error: in passing argument 2 of ‘void boost::read_graphml(std::istream&, boost::mutate_graph&)’
Any answer would be really appreciated.
Thanks in advance.