Path: 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

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