Not the best way although, its just a quick algorithm, no need to handle exception in this manner. BTW if needed better way is to use SEH. Create an (somekindof)exception type object. Override the virtual members if needed and throw the object. The caller will catch the exception if forced.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.