[boost] Problem with writing a dijkstra_visitor