Uploaded image for project: 'C++ Standard Library'
  1. C++ Standard Library
  2. STDCXX-240

#define _RWSTD_NO_EXCEPTIONS when exceptions are disabled via command line option

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.1.2, 4.1.3, 4.1.4
    • Fix Version/s: 4.2.1
    • Component/s: Build and Installation
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      Moved from the Rogue Wave bug tracking database:

      Class/File: stdcomp.h
      Fix Priority: Can Fix
      Long Description:

          • 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 <wanc@cup.hp.com>
      Organization: California Language Labs
      To: oemsupport <oemsupport@roguewave.com>
      CC: dhandly@cup.hp.com, wanc_at_hp <wanc@cup.hp.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
      that,
      RWSTD_NO_EXCEPTIONS needs to be defined conditionally.

      =========================================================
      $ cat test.C
      #include <string>
      $ aCC +noeh -c test.C
      Error 46: "/opt/aCC/include/memory", line 493 # Exception handling is
      not
      enabled (do not use the +noeh flag to aCC).
      RWSTD_THROW_NO_MSG(tmp == 0, bad_alloc);

      – Chichiang

      ***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.

        Attachments

        1. stdcxx-240.patch
          4 kB
          Travis Vitek
        2. stdcxx-240-vacpp60.patch
          0.5 kB
          Travis Vitek

          Issue Links

            Activity

              People

              • Assignee:
                vitek Travis Vitek
                Reporter:
                sebor Martin Sebor
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m