🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #28

'new' overloading

#28
From: Lun Ye
Date: Wed, 04 Nov 1992 03:58
21 lines
956 bytes
hi there,

  I am trying to overload operator 'new' with explicit placement like 

  void * operator new(size_t, place1, place2) ;

  I called it like                              

   Node *np=new(x,y) Node;
   where x, y are of type place1, place2 respectively.

I got an error says
   too few arguments for method `operator new'

what is the meanning of this? 
please e-mail me your help.
many thanx in advance.

-----------------------------------------------------------------------------
lye@uceng.uc.edu
-----------------------------------------------------------------------------
Technical Details
Message-ID: <1992Nov4.035852.21186@uceng.UC.EDU>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!ucbeh.san.uc.edu!uceng.uc.edu!lye

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!malgudi.oar.net!ucbeh.san.uc.edu!uceng.uc.edu!lye
Newsgroups: gnu.g++.help
Subject: 'new' overloading
Message-ID: <1992Nov4.035852.21186@uceng.UC.EDU>
From: lye@uceng.UC.EDU (Lun Ye)
Date: Wed, 4 Nov 1992 03:58:52 GMT
Organization: College of Engineering, University of Cincinnati
Lines: 21