Moved from the Rogue Wave bug tracking database:
Fix Priority: Can Fix
- Dec 1 1999 6:03PM *** sebor ***
A request for enhancement.
Subject: define RWSTD_NO_EXCEPTIONS when __HPACC_NOEH is
Date: Wed, 01 Dec 1999 17:11:36 -0800
From: Chichiang Wan <firstname.lastname@example.org>
Organization: California Language Labs
To: oemsupport <email@example.com>
CC: firstname.lastname@example.org, wanc_at_hp <email@example.com>
aCC has an option +noeh. When it is provided, __HPACC_NOEH will be
defined. It would be nice for users to need to only use +noeh. For
RWSTD_NO_EXCEPTIONS needs to be defined conditionally.
$ cat test.C
$ aCC +noeh -c test.C
Error 46: "/opt/aCC/include/memory", line 493 # Exception handling is
enabled (do not use the +noeh flag to aCC).
RWSTD_THROW_NO_MSG(tmp == 0, bad_alloc);
***Modified By: sebor @ May 29, 2000 10:28:25 PM***
We should do this AND test it – not just on aCC but in general with all compilers that support this feature.