Hi, I have a small problem with calling a function IsEdgeDisjoint, thing is I can call all member functions within the object except this one, I think because of the argument type. I dont know what the problem is, here's the code:
Code:
bool IsEdgeDisjoint(const Path<NodeTPointer,EdgeTPointer>& otherPath);
This is the prototype for the function in the library,
and here's where Im calling it:
Code:
bool NetworkState::AreEdgeDisjoint(List<LSPEdge> path1, List<LSPEdge> path2){
Path<LSPNode,LSPEdge> Path1;
Path<LSPNode,LSPEdge> Path2;
Path1.Edges(path1);
Path2.Edges(path2);
cout<<"Path1\n"<<Path1<<endl;
return Path1.IsEdgeDisjoint(Path2);//This statement Generates the error
}
But it generates this error:
/home/j_ghibril/GRAPH-v2.0/include/GRAPH/TPP/Path.tpp:284: error: invalid
initialization of non-const reference of type '
GRAPH::List<GRAPH::EdgeT<LSPNodeType, LSPEdgeType>*>&' from a temporary of
type 'GRAPH::List<GRAPH::EdgeT<LSPNodeType, LSPEdgeType>*>'
make: *** [NetworkState.o] Error 1
Anyone have any ideas?