RE: [Boost-Users] Re: [BGL] dijkstra_shortest_paths and the singl e-pair problem
Mark Sizer wrote:
Eeek! Exceptions as flow control are, well, not exceptions.
I have no solution to offer (I don't even fully understand the question), but I hope someone has a better answer. At this time, the only solution is to throw an exception.
This whole issue was discussed in September, including the morality of using exceptions for flow control. Please see the thread entitled "[BGL] Best way to abort an algorithm from within a visitor?": http://groups.yahoo.com/group/Boost-Users/message/1819 -- Jim
Jim,
Please see the thread entitled "[BGL] Best way to abort an algorithm from within a visitor?": http://groups.yahoo.com/group/Boost-Users/message/1819
Thanks for this - it seems there are two strongly held and opposite opinions: 1. Throw an exception from a visitor and don't put an extra termination check in the algorithm. 2. Don't use an exception, modify the algorithm. I'll pick one :-) Thanks Richard
participants (2)
-
Jim.Hyslop
-
Richard Jepps