12 Feb
2005
12 Feb
'05
3:49 a.m.
On Feb 11, 2005, at 6:00 PM, Welson Sun wrote:
template <typename Vertex> void operator()(std::ostream& out, Vertex& v) { out << "[label=\"" << g[v].toString() << "\"]"; [snip] template <typename Edge> void operator()(std::ostream& out, Edge& v) { out << "[label=\"" << "E" << "\"]"; }
I think it's a problem with the reference... typically, you just accept vertex and edge descriptors by-value (not by-reference), because they're small and cheap to copy. So the second operator() would start with: template<typename Edge> void operator()(std::ostream& out, Edge v) { Doug