As the title suggests, I'm using boost::depth_first_search
and using a Visitor (inheriting from boost::default_dfs_visitor
) to implement some algorithm.
However, during the algorithm's run, I want to save some information in the visitor, to be queried later. However, the information is erased after the DFS is done, so I assume it uses a copy. Other than just using pointers for all private variables, is there a way to prevent this and make boost use my copy?