
Hi all,
I'm enjoying learning the boost graph library. I'm
trying to use the Dijkstra algorithm and try to store
the shortest path as explained in the subsection
"Extending Algorithms with Visitors" of the section
"Quick Tour" of the BGL user guide.
When I try to compile my code, I get the following
error message:
mesh.cpp:38: error: expected constructor, destructor,
or type conversion before '<' token
mesh.cpp:38: error: expected `;' before '<' token
where line 38 is highlighted in the following portion
of code.
Could you help me to resolve this problem?
Thanks in advance,
Giulio
template <class PredecessorMap>
class record_predecessors : public dijkstra_visitor<>
{
public:
record_predecessors(PredecessorMap p)
: m_predecessor(p) { }
template