yes, more or less...
what i'm doing is iterating through a vector of functors, and i'd like to wrap the call to the functor's execution method in a try/catch block, so that any exceptions...
Type: Posts; User: m37h0d
yes, more or less...
what i'm doing is iterating through a vector of functors, and i'd like to wrap the call to the functor's execution method in a try/catch block, so that any exceptions...
so, judging what will and will not be of use to me based on specious assumptions aside, the whole point of this is that i have, hypothetically, failed somewhere. i'd need to be able to track down...
well, clearly you had ideas about how such a thing should be used. offering them up would have been nice.
fwiw, i didn't say logging info about the exception would be all that's done. but in the...
that's not helpful.
well, my strategy has always been to avoid exceptions from occurring in the first place, so i have a rather large body of work that does not include any exception handling. however, in the event...
i've tried things like:
try
{
function();
}
catch(...)
{
handleException();
is it at all possible to do something like:
template <typename returnType,typename argType>tryFunc(typename (*func)(argType),argType arg)
{
try
{
func(arg);
}