Article View: gnu.g++
Article #91which `new' is called for vectors?
From: Ken Kubiak
Date: Tue, 15 Aug 1989 21:14
Date: Tue, 15 Aug 1989 21:14
16 lines
854 bytes
854 bytes
I have defined a `class Port' and have overloaded `Port *Port::operator new( long )' for speedy allocation. However, the statement `new Port[100]' does not call my `Port::operator new'. How do I specify a `new' operator for vector allocation, short of redefining `__user_new'? (g++ 1.35.0 on a DEC VAXstation 3200) Thanks for any help, ken Ken Kubiak Computer Systems Group University of Illinois at Urbana-Champaign kubiak@csg.uiuc.edu
Technical Details
Message-ID:
<1785@garcon.cso.uiuc.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!uxc.cso.uiuc.edu!garcon!bach.csg.uiuc.edu!kubiakShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!iuvax!uxc.cso.uiuc.edu!garcon!bach.csg.uiuc.edu!kubiak From: kubiak@bach.csg.uiuc.edu (Ken Kubiak) Newsgroups: gnu.g++ Subject: which `new' is called for vectors? Message-ID: <1785@garcon.cso.uiuc.edu> Date: 15 Aug 89 21:14:55 GMT Reply-To: kubiak@csg.uiuc.edu (Ken Kubiak) Distribution: gnu.g++ Organization: Univ of Illinois at Urbana-Champaign Lines: 16