Boost logo

Boost :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2001-07-24 16:03:17


On Tue, 24 Jul 2001 alexanderdz_at_[hidden] wrote:
> C. To got compile error in line B if I pass visitor the way analogous
> to line A. To be more precise, I can't write line B following way, as
> I did for line A
>
> vertex_processor proc;
> depth_first_visit(g, vertices(g).first[1], visitor(proc), ...

The reason is that the depth_first_visit() function does not use named
template parameters, but just normal template parameters. So it is
incorrect to pass visitor(proc) to depth_first_visit().

http://www.boost.org/libs/graph/doc/depth_first_visit.html

-Jeremy

----------------------------------------------------------------------
 Jeremy Siek www: http://www.lsc.nd.edu/~jsiek/
 Ph.D. Candidate, IU B'ton email: jsiek_at_[hidden]
 Summer Manager, AT&T Research phone: (973) 360-8185
----------------------------------------------------------------------


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk