BGL question: non local exit by throwing an exception
27 Dec
2005
27 Dec
'05
9:02 a.m.
Hi, I am wondering, if it is good style to throw an exception in the middle of a BGL algorithm, for example during BFS when I have found what I want. Or are there nicer ways to achive the same goal? Thanks in advance, andreas
29 Dec
29 Dec
3:29 p.m.
New subject: BGL question: non local exit by throwing an exception
On Dec 27, 2005, at 4:02 AM, Andreas Fabri wrote:
I am wondering, if it is good style to throw an exception in the middle of a BGL algorithm, for example during BFS when I have found what I want.
Yes, this is the recommended way to abort a BGL algorithm such as BFS. Doug
6910
Age (days ago)
6912
Last active (days ago)
1 comments
2 participants
participants (2)
-
Andreas Fabri
-
Douglas Gregor