From 3f60ee904bd42b93051a01ac88fadca365101368 Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Mon, 2 Dec 2002 15:57:58 +0000 Subject: [PATCH] Add an explicit ZOOM:: prefix to the catch(exception& e) clause. Some systems (e.g. the Debian 3.0R0 that I use at work) choke on this otherwise, saying that "exception & err" is a syntax error, while others (e.g. the Red Hat 7.2 that I use at home) seem fine with it. I guess that in the former case, the second catch() block is wrongly perceived as falling outside the scope of the "using namespace ZOOM" directive. --- zoom/zclient.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zoom/zclient.cpp b/zoom/zclient.cpp index f401ab8..ca159a8 100644 --- a/zoom/zclient.cpp +++ b/zoom/zclient.cpp @@ -1,4 +1,4 @@ -// $Id: zclient.cpp,v 1.5 2002-11-30 22:33:21 mike Exp $ +// $Id: zclient.cpp,v 1.6 2002-12-02 15:57:58 mike Exp $ // Simple sample client @@ -38,7 +38,7 @@ int main(int argc, char **argv) err.errmsg() << " (" << err.addinfo() << ")\n"; return 2; - } catch(exception& err) { + } catch(ZOOM::exception& err) { cerr << argv[0] << ": exception " << err.errmsg() << "\n"; return 3; -- 1.7.10.4