OK, here's the error I'm getting when using G++:
Code:
g++ -c -O -w chart.cpp
chart.cpp: In method `void Chart::add(class Edge, class ToDo &, const class LexList &)':
chart.cpp:26: no matching function for call to `ToDo::add (int, Chart &)'
chart.h:32: candidates are: ToDo::add(const Edge &, const Chart &)
chart.cpp:37: no matching function for call to `ToDo::add (int, Chart &)'
chart.h:32: candidates are: ToDo::add(const Edge &, const Chart &)
make: *** [chart.o] Error 1
What is making me extremely mad is the error I get on Line 26. I am calling ToDo::add with an Edge and a Chart, as the suggestion on the following line states. Specifically, here's the function call:
Code:
toDoList.add(meld(tempEdge, newEdge), *this);
where meld(Edge, Edge) returns an Edge. How the hell does the compiler get an int out of this??! What can I do to correct this error?