Boost logo

Boost Users :

Subject: Re: [Boost-users] How to use make_bfs_visitor (and/or time_stamper)
From: Anders Wallin (anders.e.e.wallin_at_[hidden])
Date: 2011-06-09 02:36:32


When using a std::vector for the TimeMap parameter of stamp_times I
saw errors along the lines of
"error: no matching function for call to ‘put(........."

I changed the TimeMap parameter to a raw array, and now this compiles for me:
http://codepad.org/9KZp2FP2

not sure exactly why... (the vertex descriptor type is 'long unsigned
int', which maybe isn't the key-type for a std::vector<Size> ?)

Anders

On Thu, Jun 9, 2011 at 2:59 AM, David Doria <daviddoria_at_[hidden]> wrote:
> I figured out how to make a custom visitor for a BFS search:
> http://programmingexamples.net/index.php?title=CPP/Boost/BGL/BreadthFirstSearch
>
> but now I am trying to figure out what make_bfs_visitor does, and use
> it, potentially in conjunction with boost::time_stamper
> http://programmingexamples.net/index.php?title=CPP/Boost/BGL/MakeBFSVisitor
>
> Would anyone mind taking a look there to see where I am going wrong.
> You can see I tried a lot of things that didn't work :)
>
> Thanks,
>
> David
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net