From: Mike Taylor Date: Mon, 2 Dec 2002 15:57:58 +0000 (+0000) Subject: Add an explicit ZOOM:: prefix to the catch(exception& e) clause. X-Git-Tag: YAZPP.0.6~26 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=3f60ee904bd42b93051a01ac88fadca365101368;hp=e9a1f1ebdf02adef274a499228a3353ef0ab31af;p=yazpp-moved-to-github.git 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. --- 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;