Boost logo

Boost Users :

From: ¹Ú±â¼ö (yg-boost-users_at_[hidden])
Date: 2002-06-05 00:26:52


Can I use visitor with functor ?
In BGL example on visitor,

int main()
{
   :
  boost::breadth_first_search
    (G, vertex(0, G), visitor(make_bfs_visitor(
     std::make_pair(print_edge("tree", on_tree_edge()),
                  print_edge("cycle", on_non_tree_edge())))));
  :
}

I want to do like this

  boost::breadth_first_search
    (G, vertex(0, G), visitor(make_bfs_visitor(
     std::make_pair(print_edge("tree", on_tree_edge(), MyFunctor1() ),
                  print_edge("cycle", on_non_tree_edge(),
MyFunction2() )))));

can i do this? how? why?
thanks in advance..

ps. ths is my first posting.
----------------------------------------
Ki-Soo, Park
e-mail: park_at_[hidden]
           wfms123_at_[hidden]


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