Project

General

Profile

Actions

Feature #631

closed

Implement OFnew<> et al. and employ them to ensure exception free behavior

Added by Jan Schlamelcher over 10 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Jan Schlamelcher
Category:
-
Target version:
-
Start date:
2015-04-16
Due date:
% Done:

100%

Estimated time:
Module:
Operating System:
Compiler:

Description

The memory management functions new, new[], delete and delete[] might trow exceptions under certain circumstances. Implement OFnew and corresponding delete functions that ensure the exception free alternatives are used. Replace existing calls to new and delte with OFnew and OFdelete. See suggested implementation below.


Files

ofnew_proposal.h (1.3 KB) ofnew_proposal.h Jan Schlamelcher, 2015-04-16 11:29
Actions #1

Updated by Marco Eichelberg about 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

std::nothrow is C++98, which we meanwhile assume to be present. No special handling for historic compilers not supporting this is required anymore.

Actions

Also available in: Atom PDF