
3 Dec
2011
3 Dec
'11
7:28 p.m.
On Sat, 3 Dec 2011, Lorenzo Caminiti wrote:
Hello all,
If I move the call to boost::depth_first_search into a template depth_first_search_impl and out of the Boost.Parameter function body, the code compiles (both MSVC and GCC with latest Boost from trunk) but the executable runs forever and prints nothing to cout... What am I doing wrong?
I tried your code with GCC 4.6.0 and it worked just fine as you pasted it below. I get: order of discovery: u v y x w z order of finish: x y v u z w as the result. You are returning an invalid pointer from default_color_map(), though; &colors[0] becomes invalid when colors is destroyed at the end of the function. -- Jeremiah Willcock