Opened 14 years ago

Closed 14 years ago

#2884 closed Feature Requests (fixed)

has_operator_new

Reported by: Robert Ramey Owned by: John Maddock
Milestone: Boost 1.39.0 Component: None
Version: Boost 1.38.0 Severity: Problem
Keywords: Cc:

Description

I need this to address a TRAK ticket which deals with loading pointers to classes which overloaded new operator. Up to now, the serialization library couldn't handle that, now I believe it will be able to.

Attachments (2)

has_new_operator.hpp (2.1 KB ) - added by Robert Ramey 14 years ago.
has_operator_new.cpp (10.3 KB ) - added by Robert Ramey 14 years ago.

Download all attachments as: .zip

Change History (4)

by Robert Ramey, 14 years ago

Attachment: has_new_operator.hpp added

by Robert Ramey, 14 years ago

Attachment: has_operator_new.cpp added

comment:1 by John Maddock, 14 years ago

Status: newassigned

Robert,

I've added a modified version of this to SVN Trunk: please note that I've modified to detect the presence of any of the standard operator new overloads: since if any one of these is defined, then the others get hidden. Tested with msvc, gcc, intel and sun compilers.

Let me know if this is looking OK for you.

John.

comment:2 by John Maddock, 14 years ago

Resolution: fixed
Status: assignedclosed

Merged to release branch.

Note: See TracTickets for help on using tickets.